T5L DGUSII Application Development Guide V2.8
T5L DGUSII Application Development Guide V2.8
Version 2.8
2023/08/16
1
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Contents
Chapter 1 Quick Start ............................................................................................................................................................... 4
1.1 Naming Rule ........................................................................................................................................................................ 4
1.2 Interface Definition and Wiring ............................................................................................................................................5
1.3 Power Supply ...................................................................................................................................................................... 8
1.4 Driver Installation .................................................................................................................................................................8
1.5 Software Installation ..........................................................................................................................................................10
Chapter 2 Development System ............................................................................................................................................ 11
2.1 T5L ASIC ........................................................................................................................................................................... 11
2.2 T5L_DGUS II Development System .................................................................................................................................13
2.3 Features ............................................................................................................................................................................. 15
2.4 Software Process ............................................................................................................................................................... 16
2.5 FLASH Memory Allocation ................................................................................................................................................ 17
2.6 RAM Memory Variable Address Space .............................................................................................................................18
2.7 RAM Description Pointer Space ......................................................................................................................................... 19
Chapter 3 SD Card Interface .................................................................................................................................................. 22
3.1 MicroSD(TF) Card Format ................................................................................................................................................. 22
3.2 SD Card Interface Download Method ................................................................................................................................23
3.3 Download File .................................................................................................................................................................... 24
Chapter 4 Communication Protocol .................................................................................................................................... 46
4.1 UART(UART2) ...................................................................................................................................................................46
4.2 Virtual UART ...................................................................................................................................................................... 49
Chapter 5 System Variable Interface .................................................................................................................................... 50
5.1 System Variable Interface .................................................................................................................................................50
5.2 FSK bus interface ............................................................................................................................................................. 75
5.3 Network Interface .............................................................................................................................................................. 77
Chapter 6 Touch Variable Configuration (13.BIN) ............................................................................................................... 83
6.1 List of Touch Variables ..................................................................................................................................................... 84
6.2 Variable Data Input ........................................................................................................................................................... 85
6.3 Popup Menu ...................................................................................................................................................................... 88
6.4 Incremental Adjustment ......................................................................................................................................................90
6.5 Drag Adjustment ................................................................................................................................................................92
6.6 Return Key Code ...............................................................................................................................................................94
6.7 Text Input ........................................................................................................................................................................... 96
6.8 Synchrodata Return .........................................................................................................................................................104
6 .9 Rotation Adjustment ........................................................................................................................................................107
6.10 Sliding Adjustment ........................................................................................................................................................ 108
6.11 Page Sliding .................................................................................................................................................................. 110
6.12 Slide Icon Selection ...................................................................................................................................................... 112
6.13 Bit button ....................................................................................................................................................................... 114
Chapter 7 Display Variable Configuration ..........................................................................................................................117
7.1 List of Display Variables ...................................................................................................................................................118
7.2 Variables Icon ...................................................................................................................................................................121
7.3 Animation Icon .................................................................................................................................................................124
7.4 Slider Display .................................................................................................................................................................. 128
7.5 Artistic Variables ..............................................................................................................................................................130
7.6 Image Animation ............................................................................................................................................................. 132
7.7 Icon Rotation ....................................................................................................................................................................134
7.8 Bit Icon ............................................................................................................................................................................. 137
7.9 Icon Page Tran ................................................................................................................................................................141
7.10 Icon Overlay .................................................................................................................................................................. 144
7.11 Batch Variable Icon ....................................................................................................................................................... 148
7.12 Data Variables ...............................................................................................................................................................150
7.13 Text Display ................................................................................................................................................................... 155
7.14 RTC Display .................................................................................................................................................................. 160
7.15 HEX Data .......................................................................................................................................................................164
7.16 Text Scroll ......................................................................................................................................................................166
7.17 Data Window ................................................................................................................................................................. 169
7.19 Roll Character ................................................................................................................................................................177
7.20 GTF Icon Font ............................................................................................................................................................... 181
7.21 Real-Time Curves ......................................................................................................................................................... 186
7.22 Basic Graphics .............................................................................................................................................................. 196
7.23 Process Bar ................................................................................................................................................................ 225
2
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.24 Zone Scrolling ............................................................................................................................................................... 227
7.25 QR Code ........................................................................................................................................................................ 228
7.26 Brightness ......................................................................................................................................................................231
7.27 Data Transmit ................................................................................................................................................................ 232
7.28 Video .............................................................................................................................................................................. 233
Chapter 8 DGUS Basic Functions ....................................................................................................................................... 240
8.1 Import ............................................................................................................................................................................... 240
8.2 Edit tool ............................................................................................................................................................................ 240
8.3 Front and Back ................................................................................................................................................................ 240
8.4 Viewing the Usage of VP ................................................................................................................................................ 240
8.5 Preview ............................................................................................................................................................................ 240
8.6 New Resolution ................................................................................................................................................................241
8.7 Converting Resolution ......................................................................................................................................................241
8.8 Replace T5 project with T5L project ................................................................................................................................241
3
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
- - Separator
0= Basic type
1= Basic type with shell
1 Digit or 2= Analogue video processing platform
Attribute Code
character 3= Android platform
4= Digital video processing platform products
A= DGUSII kernel product
1 or 2
TP Category N= Without touch panel TR= Resistive touch panel TC= Capacitive touch panel
Character
4
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
② PCB pins of the same defined pins have been connected in parallel.
④ UART2 is the communication protocol developed by DGUSII, please refer to the detailed description in Chapter 4 ;
T5L DGUS products are equipped with extended UART4 , and its configuration and communication need to be
completed through DWIN OS program . TA mode is only available for UART2 communications at the moment.
⑤DWIN adopt TTL/ RS232 compatible interface. Users can use 0 Ω resistor or solder to short connect directly.
R232=0 (short circuit) selects TTL level input; R232=1(disconnect) selects RS232 level.
By default, the factory disconnects the 232 level, and selects the TTL level. That is OFF=232, ON=TTL.
5
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Level selection
6
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The power supply plays a very important role in the normal display of the screen. If the voltage is too small, the
current is unstable, and the power is too low, it may cause abnormal display such as flickering and black screen.
According to the chip type, you can download from DWIN official website or consult customer service to obtain and
install the corresponding driver for DGUS screen communication.
8
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Step 3: Select the path of the serial port driver to complete the driver update.
Step 4 : After the installation is complete, the port number corresponding to the driver can be viewed in the device
manager.
9
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
1.5 Software Installation
Download DGUS V7.624 from our official website https:// www. dwin-global.com or get from customer service.
Step 1 : Prepare the background image of the same resolution as the screen, in jpg/ bmp format, 24 - bit color. The
10
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(1) Adopts widely- used, mature, and stable 8051 core. The maximum operating frequency of T5L is up to 250 MHz,
1T (single instruction cycle) high speed operation.
High-speed display memory, 2.4 GB/S bandwidth, 24bit color display resolution supporting 800*600 (T5L1) or
1366*768 (T5L2).
2 D hardware acceleration, the decompression speed of JPEG is up to 200 fps@ 1280 * 800 , the UI interface
with animation and icons as its main feature is extremely cool and smooth.
JPEG stores images and icons in the compressed mode, external memory is greatly reduced to low- cost 16
Mbytes SPI Flash.
With a max 4 0 0 Hz touch point speed, the touch panel supports resistance or capacitance, and its sensitivity
can be adjusted.
128 K bytes variable storage space, exchanging data with OS CPU core using memory interface, extremely
simple to apply.
2- way 10 bit, 800 KHz, DC/ DC controller, simplify LED backlight, analog power supply design, and save cost
and space.
1 - way 15 bit 32 Ksps PWM digital power amplifier driver loudspeaker, save power amplifier cost and achieve
high signal- to- noise ratio and sound quality restoration.
( 3) Separated OS CPU core runs user 8051 code or DWIN OS system, user CPU is omitted in practical application.
Standard 8051 architecture and instruction set, 64K bytes code space, 32K bytes on-chip RAM.
64- bit integer mathematical operation unit (MDU), including 64 bit MAC and 64 bit divider.
Built-in software WDT, three 16- bit Timers, 12 interrupt signals with the highest four interrupt nesting. 22 IO, 4l
UARTs, 1 CAN, 7 12-bit A/Ds, 2 16-bit adjustable-resolution PWM.
( 4) 1Mbytes on-chip Flash with DWIN patent encryption technology ensure code and data security, eliminate
copycat and cloning.
11
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(5) Reducing crystal requirements and PCB design challenges for a variety of inexpensive wide- range tuned
(8) Supporting SD interface download and configuration, supporting SD card file reading and rewriting.
(9) Supporting DWIN WiFi module to access to DWIN cloud directly, and easily developing various cloud platform
applications.
(11) With low power consumption and strong anti- interference ability, it can work steadily on the double- sided PCB
design, and is easy to pass EMC/ EMI test.
(12) Using 0.4 mm ELQFP128 packaging, low manufacturing difficulty and low cost.
(13) Providing T5 L IC+ LCD+ touch panel cost- effective supporting scheme and comprehensive technical service
support for industry customers.
12
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
DGUS screen works based on configuration files, so the development process is that users complete variable
configuration files by DGUS software.
(4) Debug
Put the download files into the DWIN_ SET folder of SD card and download them to the screen through the SD card.
The sequence is power off - insert SD card - power on - blue screen; download completed: " SD card process END! "
- power off; pull out SD card - power on.
13
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
14
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
2.3 Features
Different from the traditional LCM control display through timing or instruction, DGUS adopts the direct variable-
driven display mode. Displays and operations are based on the pre-set variable configuration files. Thus, the software
architecture is simpler and secondary development is easier.
In the DGUS development platform, it is developed through the use of controls. The attributes and methods of the
defined data are encapsulated in the control, and the user only needs to configure and use the control on PC.
DGUS has defined the controls required for common HMI, which is easy to use and efficient.
In some medium industrial and automation project applications, when the entire system consists of relatively
independent and fully functional components ( such as supporting Modbus) . The user can directly use the DGUS as
the host, use the 48 5 to form a network between the device and the DWIN screen, and directly develop users based
on the secondary development platform carried on the screen. The main control software runs directly on the DGUS
screen, replacing the user' s CPU.
The T5 L_ DGUS II platform specifies a refresh cycle of 20 ms, which means that the contents of 13 . bin and 14 . bin are
read once in every 20 ms.
The DGUS II development platform supports up to 256 variables per page, so the processing capability of DGUS II is
very powerful.
OS operating mode: real-time operation (1 8051 core runs GUI and 1 8051 core runs user code on DWIN OS
platform, which are completely independent) . Thus users do not have to worry about whether DGUS and DWIN OS
will affect each other when they run on the same system.
The main features of DGUS II software platform based on T5L ASIC CPU are as bellows .
(1) Based on T5 L dual- core ASIC, GUI and OS cores both run at 200 MHz main frequency (350 MHz main frequency
version can be customized) , with extremely low power consumption.
(2) 16 Mbytes low cost SPI Flash( can be extended to 64 Mbytes NOR Flash or 48 Mbytes NOR Flash+ 512 Mbytes
NAND Flash), JPEG image, icon compression storage, You can specify the size of background image storage space.
15
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(11) Support CTP sensitivity adjustment, convenient for users to install the panel ( the thickest to 6 mm toughened
glass) application .
(12) Data variable display, automatically recognize and support the zigzag optimization of the 8 bit encoding font
library character display, to support non- standard fonts ( such as digital tube font), non- half corner characters display;
8 bit coded word library using DWIN tool software generation.
(13) Support pre-installed configuration module development mode, greatly improve the speed and quality of UI
development.
(14) Support UART1 online update software and font library, convenient debugging.
(15) Support TP handwriting input method (need to customize hardware).
(16) Support digital camera real- time monitoring display ( need to customize hardware).
16
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
INFO:
Note that there are overlaps between the font space and the image space, therefore you should avoid conflicts when
naming ID.
For the T5L1 CPU platform, the size of a single picture file in the packed ICL file should not exceed 248 KB, and that
in the T5L2 CPU platform should not exceed 760 KB. The download file must be placed in the DWIN_ SET folder of
the SD card root directory, which must be a 4 KB sector, FAT32 format SD or SDHC card.
After familiarizing with the division of the shared interval range, you can set the allocation by yourself.
For example, the font file at the user' s 23position occupies 10 intervals. At this time, the background image position
cannot start from 3 2 , but needs to start from the 3 3 rd position. If the user has a background image that is displayed
as a black screen, while other images are displayed normally, check whether the page size exceeds 256KB.
17
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Among them, 0x0000-0x0FFF is the system variable interface address space, which cannot be customized by the user;
0x1000-0xFFFF is available for users.
If 8-channel curves are used at the same time, 0x1000-0x4FFF will be used as the curve buffer address, at this time this
part is occupied and cannot be used by other controls .
The variable address is the first address of the subspace in which one or more variables are stored in the RAM
space, and the code of the display variable or the value of the state variable is stored in the space pointed to by this
address.
For example, set the variable address of a text display control to 0x5000 and the text content displayed in the
control is " Beijing DWIN Technology", then the storage method in the RAM space is shown in the following figure.
18
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
If you need to change the characters displayed in the text display control, you only need to change the character encoding
stored in the corresponding variable address. The data stored in the variable address can be modified by sending instructions
and typing on the touch screen. For example, modifying the text display control can be realized through the text input control.
It is only necessary to set the same variable address for the two controls. At the same time, the value stored in the variable
address can also be modified by sending instructions.
For detailed instructions, please refer to Variable Display Control.
The description pointer( SP) is the first address of the subspace in the RAM space that stores the attributes describing
a variable. The space pointed to by this address stores the attribute values of the display variable, such as display
coordinates, color, and font size.
It should be pointed out that the SP and the variable pointer(VP) share the RAM space, and the overlapping of the
space should be avoided when assigning variable addresses.
The explanation will be combined with the text display control. (For more instructions on the specific usage of SP,
please refer to chapter 7 of this document).
As shown in the table below, "SP offset" indicates the address length that needs to be offset (increased) on the basis of the
description pointer(SP) address, and its unit is the word length of "Word". "Definition" explains the attributes represented by
this offset address , the common attributes are: coordinate position, color, character size, alignment, etc. This is a common
attribute of software functions, but other attributes according to different types. It should be noted that some attributes occupy
a word-length address or multiple addresses, some attributes only occupy one byte address, as shown in the table below,
0x04:H high byte indicates the font location, 0x04:L low byte indicates the font size, understand the description pointer usage
after understanding the high and low byte writing.
19
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The corresponding relationship between the control properties and the instruction storage format table is shown in the figure
below, and other properties can be deduced by analogy.
The storage relationship of pointer address parameters as shown in the figure below
20
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Change Data Display The coordinates of the upper left corner of the character display position
5A A5 07 82 5001 0000 0000
Position become (0,0).
Change ASCII Character Change the character lattice to 4 8 * 96 . Note: The lattice values in the X and
5A A5 05 82 500A 30 60
Lattice Size Y directions need to be modified.
Hidden Characters 5A A5 05 82 5008 0000 Change the character length to 0 to hide characters.
Call size 60 font, the font size is 16 *16. That is, after changing the font file,
Change Font File 5A A5 07 82 5009 003C 10 10
the character size will also change at the same time.
SP setting problems:
(1) In case of no curve display, 0X1000-0X7FFF can be used for VP, while 0X8000-0XFFFF can be used for SP. The
distinction is to avoid conflicts caused by pointer address confusion.
(2) In case of curve display, and all 8 channels are used, 0X1000 - 0 X4FFF will be used as the curve buffer address .
Users should not use this part of the address as the address of other variables.
0X5000- 0X7FFF can be used as the variable address range; 0X8000- 0XFFFF can be used as the description pointer
range. In the application, the user can plan the address range of VP and SP according to actual needs.
(3) The same display controls SP can be set to 10H addresses, and different types of display controls can be set to
30H addresses. The distinction is to avoid display conflicts caused by pointer address confusion.
(4) If the SP of the same type of display controls is set to be the same, it can only be realized by copying to other
pages. The font size and other attributes shall not be changed and the controls shall not be moved, otherwise It will
cause abnormal display.
21
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Non-DWIN-official SD cards need to be formatted under the DOS system. Otherwise, the number of downloaded
files is 0 during the blue screen downloading, or the screen fails to recognize the card to enter the download interface.
Step 2: Input command: format/q g:/fs:fat32/a:4096 (Note that q is followed by a space). Click enter after input.
Where g is the disk number of SD card displayed on PC, and the corresponding disk number of different users is
different (for example, it can be “ h” or “ i” ).
Note: The SD card cannot be completely formatted to FAT32 by right clicking formatting. Generally, it is only for the
SD card size of 1- 16G.
22
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
T5 L_ DGUSII is different from T5 _ DGUSI. In practical applications, the background images of the T5 L screen needs
to be downloaded in. ICL file, which can be generated by DGUS. JPEG pictures cannot be recognized directly.
② Put the ICL file, font library, configuration files, etc. to the DWIN_SET folder.
③ When the screen is powered on, it will detect that the SD card and recognize whether there is a folder named
DWIN_SET in the SD card root directory .
If the folder is successfully detected, the screen will download the relevant files to FLASH. Folders under the
DWIN SET folder cannot be read .
④ When the blue screen indicates that the download has completed, power off the screen, pull out SD card, and
power on again. Then the project has been downloaded in the screen successfully.
DWIN standard screen, will only recognize folder named DWIN_ SET if not specially customized or with download
encryption. Other folders can not be recognized.
23
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The SD/ SDHC interface of T5 L screen supports download and update of the following files.
SD card does not support hot swap update. You must power off the screen before insert the SD card, and then power
on to download .
T5L_UI*. BIN
Program file Underlying kernel firmware program
T5L_ OS*.BIN
DWIN OS program DWINOS*. BIN DWIN OS program, the code must start from 0x1000.
Music file Font ID+ ( optional) filename. WAE Must be in DGUSII format, generated by DWIN tools.
CRC check file T5*. CRC Perform CRC32 check after SD card download.
16 MB Flash memory ( max expandable to 64 Mbytes Nor Flash or 48 MB Nor + 512 MB NAND Flash) is divided into two
parts:
(1) 4-12MB font library space. Single space is 256Kbytes for font library, icon libraries, configuration files.
For T5 L1 screens, the size of a single JPG file should not exceed 24 8 KB, and for T5 L2 CPUS, the size of a single
JPG file should not exceed 760 KB.
25
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
When using NAND Flash expansion, it must be soldered in the position of expanded Flash 3. Corresponding font library
ID=0xC0-0xFF, each of 8MB.
The download file must be placed in the SD card root directory DWIN_ SET folder. And the SD card must be a 4KB
-sector, FAT32-formatted SD or SDHC card.
DGUSII_ T5 L calls configuration files by the file name number. Therefore, the files should be named by
Alabaster numbers in order.
2. The image resolution should be the same as the screen in 24-bit color.
3 . By default, image 0 in the ICL file will be displayed at booting. The images are named according to the
Arabic numbers, e.g. 00_boot, 01_function, 02_menu.
4 . You need to convert images into . ICL file to download it to the screen. That is, the images are packaged
and downloaded in the form of a library file.
5 . Background image ICL files are used to display background images. If you name background image ICL as 32 . ICL,
you need to write 0 x2 0 in the 0 x0 8 address of the CFG file so that the underlying programs can correctly read and
identify the ICL file.
If the CFG file is empty, the screen will be black ( with a weak backlight) . In this case, you should check the
0 x08 address in the CFG file.
6 . For T5 L1 screen, the single image size in the ICL file should not exceed 256 KB; For T5L2 screen, that should
be less than 768 KB. There is no limit to the size of the original image materials.
When using DGUS to generate ICL files, if a image in the generated ICL file is larger than the limit, you
should reduce the quality percentage of images according to the prompt.
You can also view size information of the ICL file by DGUS ICL generator. If scattered dots are displayed
in background images, you can select the image type 4:4:4 .
25
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
When a single icon library file exceeds 2 5 6 KB, it is necessary to strictly calculate the interval occupied by the icon
library, otherwise it may cause a conflict in the position of the icon interval and cause display abnormalities.
DGUS screen has been pre-installed with ASCII code 0# font library at the factory, which contains all ASCII characters
with dot matrix size of 4*8 ~ 64*128. Users can directly call the 0 # font library to realize the display of numbers, letters
and symbols.
When you need to use other coded font libraries, you need to generate them through the font generator. DGUS
support BIN, DZK, HZK font files.
Generally, 22.bin can be directly generated by DGUS, and the initial value is automatically written when the
configuration files are generated. Users can also edit values in the 22 file by UltraEdit.
Note that DGUS variable address is in word, while in UltraEdit 22. bin is edited by byte . Therefore, when modifying the
VP 0x2000 word initial value, you should modify 0x4000 byte address in UltraEdit.
When editing 22 . bin, you need to copy it on the desktop. Before downloading, put them back to the DWIN_ SET folder.
Otherwise, modifications will overwritten when the project is saved and generated.
26
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Naming range of .wav voice: 1-63, 0 means no touch voice and does not support playback. The touch voice ID is
only up to 0x3F, that is, 63, and the setting of a larger value is invalid, and it will jump back to 0x3F. (When using
the 0xA0 command to play, the range of .wav is 0-255).
(2) .wae file size calculation
The .wae voice package occupies 16MB, and the calculation method of Nor Flash is the same as other font files.
"x" file size*1024/256=N (occupies several 256KB subspaces), such as "x" file 1.23MB, 1.28*1024/256=5.12,
rounded up, 0.12 also occupies a part of 256KB, need to count one , that is, the "x" file occupies 6 spaces, and 16,
32, and 48 custom files are calculated according to this.
For example, the number 16 music file is 1.23MB, that is, the file occupies 6 spaces of 16, 17, 18, 19, 20, and 21.
At this time, if you put a Chinese character font and name it 17, the name is wrong, and you need to put it in
another location according to the above calculation.
Adjacent .wav voice materials only need to have different names and IDs, and the program will index the .wav
serial number to play, such as one voice 1S, one voice 3S, two voices can be named consecutively, and the longest
voice duration of one voice is 1024S.
27
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
3.Touch ID Settings
The range is 1-63, and the software input box ID is hexadecimal.
5. File download
Put "16.WAE" and “T5LCFG.cfg” configuration files, 13, 14, 22, (32_background picture), (48_icon) and other files
into the DWIN_SET folder, download them to the screen through the SD card, click the touch ready to play.
6.speaker
(1) With speaker interface
The power of the speaker is 3-5W, the impedance is 8Ω, the 2Pin seat is connected to the speaker interface,
regardless of the positive and negative poles
28
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
29
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x14 1 H_W
LCD
0x15 1 H_S
configuration
0x16 2 H_D Horizontal ( X axis) resolution
0x18 1 H_E
0x19 1 V_ W
0x1A 1 V_S
0x1D 1 V_ E
30
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x2D 1 BUZZ_ Time Buzzing time after touch, unit 10 ms; Factory setting: 0x0A
0x2E 1 Init_File_ Set_ En 0x5A = Start configuring power- on initialization variable file ID.
Power- on
initialization file The configured power- on initialization variable file ID, the factory
ID configuration 0x2F 1
Init_File_ID defaults 0x16 .
31
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x33 1 ICL_ID The ID of the ICL file that saves the replaced picture, 0x00 means no
replacement (closed).
1. Application instructions
It is used to replace single or multiple pictures, which is convenient for users to customize the application.
2. Function setting
According to the function description of 0x32 and 0x33, the settings are as follows, write 0x5A to 0x32 to enable, write
0x21 to specify the location at 0x33, and specify the call through the CFG hardware parameter configuration file. Cancel
replace 0x33 write 0x00.
The background picture file of routine No. 32 is 160KB, and only occupies one 256KB Flash subspace. The spare
replacement file is placed at 0x21. If the No. 32 file is 300KB, the spare replacement file needs to be moved back.
3. Backup picture
(1) The ID of the backup picture needs to be the same as that of the original picture. For example, if the ID of the original
image is 00, the backup picture can be named "00" or "00_Replacement".
(2) Replacement means that the buffer loads the ID data of Flash file No. 33 to the LCD display. The data calling position
is different, and the data of No. 32 file is not covered by No. 33 file.
4. Display effect
Original Replace
32
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Character length
SD download file
0x42 1 of download 0x01-0x08
folder name
setting folder name
0x70 1 Configuration enable 0x5A Start a power-on backlight delay lighting time configuration.
Power-on backlight
delay lighting
configuration 0x71 Power-on backlight delay start time, the unit is 10ms, the factory
1 Delay enabled
configuration is 0x0A.
33
DWIN Technology
T5 L_ DGUSII Application Development Guide
Professional, Creditable, Successful
Attention: Users can configure the parameters in the green background of the CFG file as needed, but if you
feel uncertain or need to modify the parameters in the white background, never hesitate to contact customer
service. We are always willing to offer assistance.
⑥Software generation: CFG files can be modified manually or generated by software, DGUS software generation is done in
the following 7 steps.
34
DWIN Technology
T5 L_ DGUSII Application Development Guide
Professional, Creditable, Successful
⑦CFG configuration diagram: the first row is the common configuration, the second row is the LCD configuration,
the third row is the touch configuration, etc. The first line 0x05 address is the most commonly used address.
1 0
Display direction 00=0° 01=90° 10=180° 11=270°
0 0
1 byte corresponds to 8 bits, and each bit corresponds to two states: on and off. Write 1 to set the corresponding
bit on and 0 to off .
Convert the binary 00111000 to hexadecimal 0x38 , write 0x38 to 0x05 address, and download the CFG file to
complete the corresponding configuration.
35
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
It’s same for instructions, taking controlling the brightness of the backlight as an example:
No checksum Tx (send): 5A A5 04 82 0082 0A
Add check Tx (send): 5A A5 06 82 0082 0A C8FB
Meaning: 0x5A A5 06: The frame header and data length do not need to participate in the verification;
0x82 0082 0A: The instruction part that needs to participate in the verification; the first 0x82 is the write instruction,
and the second 0x0082 is the backlight control address, do not confuse it.
Backlight brightness range 0x00-0x64.
0xC8FB: check value, check format CRC-16.
Setting value of DMG85480C050-03W (Vertical screen at factory) in CFG file at different display direction.
36
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(2) CFG 0x0C backlight screensaver configuration
After the backlight standby screen protection is turned on, the first touch on the touch panel will wake up the backlight,
and the second touch will trigger the touch control.
If the background image file is set to 32. ICL, 0x20 needs to be written at CFG 0x08.
Because the baud rate accounts for 0x0A 0x0B 2 bytes, CFG file 0x0A address should be started as 0x001C.
37
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(5) Display
Display configuration mode and touch configuration mode have been configured at factory. In case of reverse
touch/ page sliding or white screen or screen flicker during configuration, you can try to download the factory CFG
file.
Write 0x5A at 0x10, 0x11. A5 indicates that 0x12-0 x1F parameters will take effect, and 0x00 indicate that they will
not take effect.
the configuration of the 0x22 position takes effect, 0x22 with the sensitivity value, the factory default is 0x14, the range
0x0000-0x1F, generally the greater the thickness of the PMMA or tempered glass, the corresponding modified value is
also greater.
38
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(8) Buzzer
Buzzer can be configured in the CFG file to adjust and modify the buzzer sound volume and duration.
0 x2 B in the CFG file determines the sound volume of the buzzer. A larger duty cycle means a louder sound.
0 x2D in the CFG file determines touch button buzzer time, unit: 10mS. Factory default is 0x0A.
After configuration, the key accompaniment sound of the touch screen and the buzzer sound controlled by the system
variable interface buzzer serial port command will change accordingly.
Attachment: Description of system variable interface 0xA0:
On-chip Flash saves WAE music playback settings:
D7: The segment ID of this playback, 0x00-0xFF; the location of the WAE file is specified by the CFG configuration file or
D2:D1.
D6: The number of playing segments this time, fixed at 0x01, and cleared to zero after DGUS processing; in buzzer mode,
it is the beeping time, and the unit is 8ms.
D5: playback volume, the unit is 1/64; the initial value after power-on is 0x40(100%).
D4: Play status feedback, 0x00=stop, 0x01=pause, 0x02=playing.
D3: 0x5A indicates that the WAE file is specified by D2:D1, otherwise it is specified by the CFG configuration file.
D2:D1: WAE file location, only valid when D3=0x5A.
D0: Undefined, write 0x00.
Command example:
5A A5 05 82 00A0 007D ; The buzzer sounds for 1 second, 1000ms/8ms=125=007Dh.
5A A5 05 82 00A0 003E ; The buzzer sounds for 0.5 seconds, 500ms/8ms=62.5=003Eh.
39
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
T5 L screen with RTP are designed with automatic error identification and dynamic calibration algorithm, which
can solve the problem of touch offset.
When products are in a strong interference environment, touch drift may occur occasionally. In this case, you
can use the following methods to restore the touch screen to normal functions.
The product calibration methods of T5L TA and DGUS are the same. During the switch between TA instruction set
development mode and DGUS development mode, touch drift may occur occasionally. At this time, it can also
be calibrated as follows .
Taking the DMG48320C035_03WTR four-wire resistive screen as an example, the first upgrade of the V60 and above
kernel version calibration, the steps are as follows, the V45-V55 version does not upgrade the calibration and skip the
first step:
①Download the V60 kernel program first——and then download the .INI file (the screen will be black if you don’t
download this file for V60 and above, just download it once), and skip this step if you have upgraded V60.
40
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x08 meaning: the upper touch screen configuration table .7-.4 (high 4bit) indicates the touch screen type,
DMG48320C035_03WTR is a 4-wire resistive screen, so the high 4bit corresponds to choose to write 0. In the same
way, if the 5-wire resistive screen is 4 bits high, choose to write F. Writing 1 to bit3 in the lower 4 bits means turning on
resistive screen touch calibration, and bit2/bit1/bit0 are only valid for capacitive screens, that is, writing 0/1 is OK, and
the lower 4 bits of 4 bits binary 1000 is converted to hexadecimal 8. Therefore, writing 0x08 at address 0x21 is the
standard value, and it is also possible to write a value within the range of 0x08-0x0F at the same time, as long as bit3
writes 1.
You can write 0x00-0x07 without calibration, the default is 0x00, as long as bit3 writes 0 lines.
If you want to calibrate 0x21 for 5-wire resistive screen, you can write 0xF8-0xFF, and you can not calibrate 0xF0-0xF7.
Take the DMG48480C040_03WTC capacitive screen as an example, writing 0x16 at address 0x21 will result in invalid
touch reverse (download a wrong one), find the factory configuration file of the corresponding model and write 0x10 at
position 0x21 to update (download a correct one). At the same time, the type of touch screen used can be known
according to the high 4bit value.
41
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(13)0x71 Power-on backlight delay lighting configuration
Power-on backlight 0x70 1 Configuration enable 0x5A Start a power-on backlight delay lighting time configuration
delay lighting
0x71 1 Delay enabled Power-on backlight delay start time, the unit is 10ms, the factory
configuration configuration is 0x0A
42
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
PHS PHS PHS PHS PHS PHS PHS PHS PHS PHS PHS PHS PHS PHS
2.0_240*320IPS 01 26 0A 14 00 F0 0A 02 02 01 40 02 11 00
2.4_240*320IPS 01 26 0A 14 00 F0 0A 02 02 01 40 02 0D 00
2.4_320*240 01 26 0A 14 00 F0 0A 02 02 01 40 02 05 00
2.8_240*320 (ST7789) 01 26 0A 14 00 F0 0A 02 02 01 40 02 03 00
2.8_240*320B 01 26 0A 14 00 F0 0A 02 02 01 40 02 01 00
3.5_320*240 01 26 0A 14 00 F0 0A 02 02 01 40 02 02 00
3.5_320*480 01 14 0A 04 01 40 0A 02 02 01 E0 02 04 00
3.5_480*640 (ST7796S) 01 0A 10 20 01 40 20 02 03 02 80 02 06 00
3.5_480*640 01 0A 10 20 01 E0 20 02 03 02 80 02 13 00
3.5_480*800 IPS(ST7701S) 00 08 04 0C 01 E0 08 04 13 03 20 80 17 00
4.0_480*480 IPS(ST7701S) 00 0E 08 08 0E E0 08 02 0C 01 E0 06 08 00
4.0_480*800 IPS(NT35512) 00 08 08 08 01 E0 08 04 0A 03 20 0A 09 00
4.0_480*800 IPS(ST7701S) 00 08 08 08 01 E0 08 04 0A 03 20 0A 16 00
5.0_720*1280(IPS Incell) 00 03 04 14 02 D0 14 02 12 05 00 C8 08 00
5.0_480*854 IPS
(HSD ST7701S) 00 08 08 08 01 E0 08 02 0C 03 56 06 0C 00
5.0_480*854 IPS
(BOE ST7701S) 00 06 20 40 0E 10 40 02 06 03 56 08 14 00
4.3_480*800 IPS
(9701) 00 08 04 0C 01 E0 08 04 13 03 20 08 0E 00
4.3_480*800 IPS
(ST7701S) 00 08 04 0C 01 E0 08 04 13 03 20 0A 15 00
3.0_360*640 IPS 00 0A 20 3C 01 68 20 06 36 02 80 08 0F 00
480*272 01 16 29 02 01 E0 02 0A 02 01 10 02 00 00
640*480 01 08 1E 72 02 58 10 03 20 01 E0 0A 00 00
800*480 01 06 1E 10 03 20 D2 03 14 01 E0 0C 00 00
800*600 01 05 1E 10 03 20 D2 03 14 02 58 0C 00 00
1024*600 01 04 A0 88 04 00 18 06 1D 02 58 03 00 00
1024*768 01 04 10 40 04 00 20 04 08 03 00 04 00 00
1280*720 01 03 10 40 05 00 20 08 20 02 D0 20 00 00
1280*800 01 03 10 1C 05 00 10 08 10 03 20 10 00 00
1366*768 01 03 10 20 05 54 20 06 10 03 00 08 00 00
136*768 eDP 00 03 10 20 05 54 20 06 10 03 00 08 10 00
1024*768 VGA 00 03 88 A0 04 00 18 06 1D 03 00 03 00 00
1280*800 VGA 00 03 80 C8 05 00 48 06 16 03 20 03 00 00
43
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
OS core code 0 x5 A means to perform the CRC check of the OS core code, and the rest means
0x000F 1
verification skip the check.
0 x50 = the ID of the font file to be checked; 0 x51 = the number of files that need to
be checked at the beginning of this ID, 0 x0 0 means the end of the check of the
0x0050 font file.
2 For off- chip NOR Flash, the font size is 2 5 6 KB.
Font file verification
For off- chip NAND Flash, the font file size is 8 MB; and due to bad blocks, the last
file should not be used or verified.
0x0052 254 The remaining 12 7 defined positions.
44
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Only the folder named as DWIN_ SET can be identified by screens, which should contains all files that need
to be downloaded, such as "13TouchFile","14ShowFile", "22_Config.bin", etc.
When creating a new project, the software will automatically generate a series of files, among which " DWprj. hmi"
is the only editing program that the DGUS software can recognize. This file cannot be renamed or deleted.
Since the T5L screen cannot read JPEG pictures directly, it is necessary to make pictures and icons into ICL
files. The generation process of download files is as follows .
45
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Data block 1 2 3 4 5
Length 2 1 1 N 2
Sample(no parity) 5A A5 04 83 00 10 04
Sample(parity) 5A A5 06 83 00 10 04 25 A3
The CRC check on/off is controlled by bit 0 x05. 6 of the configuration file.
Send:
Register page (0 x00 -0 x08 )+ register address (0 x00 - Specify the address to start writing the data string to the register.
0x80 0xFF) + data written
Answer:
The write instruction is answered.
0x4F 0x4B.
Send:
Register page (0 x00-0 x08) + register address (0x00- Start reading data from the specified register.
0xFF) + byte length of the read data(0x01-0xFB)
0x81 Answer:
Register page (0 x00-0 x08) + register address (0x00- The data is answered.
0xFF) + data length + data
Instruction example: 5A A5 04 81 00 0A 04 Read 04 bytes of data from os registers R10~R13 in register page 00.
80 81 Instructions are generally not used by users, and are usually used for debugging access to OS functions. You can refer to the
register table in the OS application guide. OS Registers Register Page IDs (0x00-0x07) and Interface register page ID (x08).
Send: Write data string ( word data) to variable space starting from the
Variable space first address (0 x0000 -0xFFFF) + specified address. Do not write the space reserved by the
0x82 written data system.
Answer:
Write instruction answer.
0x4F 0x4B.
Send:
Read word data of the specified length from the specified
Variable space first address (0x0000- 0xFFFF) + byte
address of the variable space.
length of the read data(0x01-0x7D)
0x83 Answer:
Variable space first address + byte length of the The data is answered.
variable data + the read variable data
46
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Note: DGUS II has replaced common hardware-related operating registers with system variable address interface
access instructions. The space reserved by the system does not need to be accessed.
T5L supports ED4 USB downloader to communicate with DGUS screen through SD card interface. The virtual serial port
mode of the downloader to communicate on the PC side is 8N1, and the baud rate is fixed at 8Mbps. When the PC-side
software is processing, it must receive the ED4 response before sending a new data frame. Each data frame can read and
write up to 128KB of data.
Here, take writing the value 2 to the variable address of 1000 as an example:
5A A5 05 82 1000 0002
5A A5 means: frame header
05 means: data length
82 means: write variable memory instruction
1000 means: variable address (two bytes)
0002 means: data 2 (two bytes)
Explanation: assign a value of 2 to address 0000 through the command, and the display on the screen shows that the data
variable is of integer type 2
47
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Note: The address of the DGUS screen reading and writing variables can be regarded as the starting address: for example,
the effect of the following a and b commands is equal to c
a: 5AA5 05 82 1001 000A
b: 5AA5 05 82 1002 000B
c: 5AA5 07 82 1001 000A 000B
Here is an example of reading the value in the variable address of 1000 (assuming the current value is 2):
5A A5 04 83 1000 01
5A A5 means: frame header
04 means: data length
83 means: read data storage area command
1000 means: variable address (two bytes)
01 means: read 1 word length from address 1000, the maximum allowable length of data instruction is 0x7c
After reading, the screen will return a read response to the serial port:
5A A5 06 83 1000 01 0002
5A A5 means: frame header
06 means: data length
83 means: read variable memory instruction instruction
1000 means: variable address (two bytes)
01 means: read 1 word length data from address 1000
00 02 means: the data value in address 1000 is 2
4.2.3 Touch the key to return to the serial port data (0x83)
Here, take the return variable address 0x1001 and key value 0x0002 as an example:
5A A5 06 83 1001 01 0002
5A A5 means: frame header
06 means: data length
83 means: read variable memory instruction instruction
1001 means: variable address (two bytes)
01 means: 1 word length data
00 02 means: key value 0002
Button return (non-basic touch) can be sent through the serial port after the system configuration CFG file configures data
upload.
Upload protocol format: (key return address 1001 key value 000A) 5A A5 06 83 1001 01 000A
After pressing the return button, the value screen in this address will not be automatically cleared.
For RS485 half-duplex communication, you can use the 5A A5 04 83 10 01 01 read command to read the key value, and the
response format of the read command is consistent with the touch upload format.
RS485 adopts half-duplex communication mode, so do not receive data and send data at the same time
48
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(ED4 USB downloader, communicating with DGUS screen via SD card interface)
The PC sideED4 USB downloader communication mode is 8 N1, with a fixed baud rate of 8 Mbps, and each data
frame consists of 4 data blocks.
Interface table:
Data block 1 2 3 4
Length 2 3 1 N
The PC software must receive an ED4 response before sending a new data frame, and each data frame can read
and write up to 128 KB of data.
49
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Length
VP Definition R/W Description
(word)
D3 : write 0x5A to enable DWIN OS program once (write into on-chip Nor
Flash). clear after CPU operation.
D2: File type
0x10: must be DWIN OS program from 0x1000, update 28KB at every
time.
0x06 OS_ Update_ CMD W 2 0xA5: 8051 code, update 64KB at every time.
D1: 0 : Start address of SRAM to save/ update program to. It must be even.
E.g. This instruction is used for downloading and updating the user OS
program. " DWIN OS Builder" PC software has integrated the function of
downloading the OS. bin file into the screen through UART 2 after
compilation.
(2) ) Store 2- word data of variable storage space 0x1002 address into
NOR_ FLASH_ RW_
0x08 W 4 Nor Flash database header address 0x000002:
CMD
5A A5 0B 82 0008 A5 00 0002 1002 0002
(3) ) Read data from Nor Flash database 0 x00 0002 to variable
storage space address 0x2000:
50
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x0C UART2 W 2 D3: Write 0x5A to configure the UART2 baud rate once; change it to 0xA5 after
configuration OS core processing.
D2: serial port mode, bit definition.
.7 CRC check, 1=on, 0=off.
.6-.0 Reserved, write 0.
D1:D0: Baud rate configuration value, D1:D0=CPU main frequency/(64*set baud
rate).
1. Application instructions
Baud rate and frame CRC switches for real-time modification of UART2.
2. Instruction example
Configuration value:
206.4384MHz*1000000=206438400Hz
9600 baud rate configuration value: 206438400/(64*9600)=336=0x0150
115200 Baud rate configuration value: 206438400/(64*115200)=28=0x001C
(1) The baud rate is modified, and the CRC is not modified (closed)
①Change the baud rate from 115200 to 9600
Send: 5AA5 07 82 000C 5A00 0150
After the modification, you can send a command to read the version number. If the
correct version number is returned, the modification is successful. After the baud
rate is modified on the screen,
The baud rate of the sending end also needs to be modified.
Read version number: 5AA5 04 83 000F 01 (0x01 refers to reading the interface
address of 0x000F, and returns the address in 0x000F
1 word length version number data stored on the face. )
Return: 5AA5 06 83 000F 01 63 22 (response to the command above, the high
byte 0x63 is the GUI version number,
The low byte 0x22 is the DWIN OS software version number, and the program
version ID will be updated. The data returned here is for reference only. )
(2) The baud rate is not modified, but the CRC is modified
①Enable CRC: 5AA5 05 82 000C 5A80
Read version number: 5AA5 06 83 000F 01 ED90 (0xED90 is CRC16 check, see
section 4.2.4)
Return: 5AA5 08 83 000F 01 63 22 E5D5
② Close CRC: 5AA5 07 82 000C 5A00 A6BD
Read version number: 5AA5 04 83 000F 01
Return: 5AA5 06 83 000F 01 63 22
3. Function setting
(1) CRC check
Set the factory baud rate to 115200, CRC is off, and the return value of the above
version number is tested under the V63 GUI version and V22 DWIN OS version.
After the program is updated, the return version number data is modified, and the
check value will also be modified.
(2) Touch settings
It can be set through the pop-up menu, data entry, and key value return. After
setting the value, you need to write 0x5A to the high byte of 0x000C to write the
address.
When using the key value return to check the high byte, the low byte of the return
key value is stored in the high byte address (VP_H) of the VP address.
(3) The set value will not be saved when power off.
51
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Application software version. D3=0x00, D2=CTP driver software version, D1
means GUI software version, D0 means DWIN OS software version.
E.g.
Send: 5A A5 04 83 000F 01
Return: 5A A5 06 83 000F 01 61 21 (61 is GUI software version, 21 is DWIN
OS software version)
Send: 5A A5 04 43 000E 02
Return: 5A A5 08 83 000E 02 00 41 61 21
Application :
(1) When using a display terminal, due to the control system, display
0x0F Ver R 1 terminal start time inconsistent (depending on the user' s power supply
capacity and electricity rate) , to ensure that the control system of a start
sending data display terminal received correctly and carry out the
corresponding functions and instructions, so need to confirm whether the
display terminal has the normal operation, the user can be identified by this
directive;
(2) In the process of debugging need to know whether the system version,
configuration and so on is correct, you can also send this instruction to read.
(3) The transmission and response of this instruction is often used to verify
that the communication between the computer serial port and the serial
screen is normal.
D7=Year (0-0x63) D6=Month(0-0x0C), D5=Day(0-0x1F), D4=Week(0-0x6),
D3 =Hour(0-0x17), D2=Minute(0-0x3B), D1=Second(0-0x3B), D0
Undefined. Data format is HEX.
Without RTC on hardware, user can write RTC data.
E.g.
0x10 RTC R/W 4 Write: 5A A5 0B 82 0010 13 0A 01 00 0B 0C 0D 00
Text RTC display 2019-10-01 11:12:13 SUN,
The first two digits of the year are automatically identified;
The week is displayed in English, and the system will convert automatically.
Read: 5A A5 04 83 00 1004
Answer: 5A A5 0C 83 00 10 04 13 0A 01 00 0B 0C 0D 00
Display current page ID. Read only.
E.g.
0x14 PIC_ Now R 1
Read: 5A A5 04 83 0014 01
Answer: 5A A5 06 83 00 14 01 0007 (0007 is page 07)
0x15 GUI_ Status R 1 The operation state feedback is in millisecond unit level, which is generally
applied in special cases. The user can judge whether the GUI kernel is
occupied by the DWIN - OS program.
D7: 0x5A= touch panel data is updated. Others= touch panel coordinates not
updated
0x16 TP_ Status 4
After reading the data, the user can write ≠ 0x5A as a mark. As long as the
user does not touch, the mark will not be updated
52
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
R 1 E.g.
0x7B LCD_ VER
Read:5AA5 04 83 007B 01
Answer:5 A A5 06 83 00 7B 01 01 10 (0x0110 is vertical resolution)
53
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
write.
1. 0: display direction 00 = 0 ° , 01 = 90 ° , 10 =180 ° ,11 = 270 ° , read and
write.
E.g.
Read: 5A A5 04 83 0080 02
Answer: 5A A5 08 83 00 80 02 00 14 1038
Read instructions are typically used to view the screen . CFG configuration .
D0 can change the configuration. CFG file 0 x05 address, for example, the
next two instruction are on the corresponding.4 = 1. 5 =1 , TP sound control
off or on, can be applied to the touch button of the buzzer “ mute" function.
Note: write instruction is not saved after power off.
Write: 5A A5 07 82 0080 5A 00 00 30
Write: 5A A5 07 82 0080 5A 00 00 38
Set standby backlight.
D3 = Turn on brightness, 0x00-0 x64; When backlight standby control is off,
D3 is the brightness adjustment interface.
D2= Turn off brightness, 0x00-0x64; D1:0=open time / 10 ms.
E.g.
1 . When CFG address 0 x05 is configured to turn on backlight standby
control of touch panel:
5A A5 07 82 0082 6432 03E8, 10 seconds after the screen backlight
automatically reduced to 0 x32 brightness.
5 A A5 07 82 0082 2020 ****, direct instruction control backlight brightness
LED_ Config 2
0x82 0x20 brightness, and backlight screen saver brightness is consistent with
standby.
Note: the first physical touch on the touch panel after a certain period of
time is to wake up the backlight function of the screen saver. Even if the
brightness is the same as the setting value of standby brightness, additional
first awakening touch and click operation" is still needed after a certain
period of time.
2 . When CFG address 0x05 is configured with backlight standby control over
touch panel:
5A A5 05 82 0082 0A**, direct instruction control backlight brightness is 0x0A
brightness.
Instruction example:
5A A5 07 82 0084 5A01 0001 , display the 01 serial number picture under the
background picture ICL file (if the serial number picture ID of the sent
instruction does not exist, the instruction operation judgment will not take
effect.)
54
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
D3 =write 0 x5A to enable PWM0 setting once, The CPU is cleared after
processing.
E.g.
R/W 1. .Write 0x0086 variable configuration 100 KHz
0x86 PWM0_ Set R/W 2
The division factor is set to 1, upper limit value=825.7536MHz/0. 1MHz=8
258 (0x2042).
D3= 0 x5 A starts a PWM1 setting, and the CPU clears it after processing.
D2 = frequency division coefficient D1 : D0 = PWM1 precision PWM1 carrier
frequency= 825 . 7536 MHz/( frequency division coefficient*PWM1 precision).
0x92 PWM0_ Out R/W 1 D1: D0= PWM0 output high level width, 0x0000- PWM0 precision.
0x93 PWM1_ Out R/W 1 D1: D0= PWM1 output high level width, 0x0000- PWM1 precision.
55
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
D7: indicates the segment ID of this playback, 0 x00 - 0xFF. The WAE file
location is specified by the CFG configuration file or D2: D1.
56
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
① Set the save location of the .wae file by modifying the parameters of the
For example: 26 .wae corresponds to the 0x07 position of the CFG file, write
0x1A.
② Configure the parameter modification of the 0 x05 address of the CFG file.
For example: write 0x7C to the 0x05 position, and the .6 bit enables music
playback. (.6 : Buzzer/ music play selection, 0= buzzer 1= music play.)
③Instruction format: 5A A5 07 82 00A0 03 01 40 00 Play music with ID 03 in
wae file, play segment 1 segment, volume is 100%, D0: feedback is read
only, write instruction can write 00 without definition .
57
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
D9: D6: The starting address of the NAND Flash to be written, the lower
If the lower 18 bits of the starting address are all 0s, the T5L will first
D5: D4: The write data is stored in the first address of the data variable
D10=0x05, 32- bit CRC check of NAND Flash data ( NAND Flash must
be externally expanded) .
D5: D4: The number of 4KB data blocks to be checked, 0x0001-0 x8000 ,
D3: D0: 32- bit CRC check return value, the CRC check polynomial is the
0 x00-0xBF is SPI NOR Flash, the size of a single font is 256 Kbytes;
0 x0 C0- 0xFF are SPI NAND Flash, and the size of a single font is 8Mbytes.
The 16MB memory can be divided into 64 256KB memories, that is, the range
of 0-63 (32.ICL is divided according to this); it can also be divided into 512
32KB memories.
One 16MB Flash block: 16*1024/32=512 (unit conversion, 1MB=1024KB), that
is, the range is: 0x0000-0x01FF (0-511);
Four 16MB Flash blocks: 16*4*1024/32=2048, that is, the range is: 0x0000-
0x07FF (0-2047).
Update 32.ICL to calculate the start ID according to the 32KB data block sent:
32*256/32=256=0x0100, that is, the first data packet of 32.ICL is placed at
0x0100.
58
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
2. Write the 32.ICL data into the first address of the variable space (RAM)
0x8000 for temporary storage.
The above is a 32KB data block occupying the address range of 0x8000-
0xC000 (the temporary storage address should not be used for other
purposes, otherwise the data will be modified).
Since an instruction does not exceed 255 bytes at most, and the data part
does not exceed 249 bytes, 240 bytes is used as the length of the data part
(easy to calculate).
0x8000 0x8078
0x80F0 0x8168
0x81E0 0x8258
0x82D0 0x8348
0x83C0 0x8438
0x84B0 0x8528
0x85A0 0x8618
0x8690 0x8708
0x8780 0x87F8
Attached picture 32. The ICL command is as follows (choose a solid color
image, the amount of data will be small, and the same part of the data can
be copied):
59
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Article 1
0000h-00efh (240 bytes, 240=00f0h, next address starts at 00f0h, 15 lines of
data in UE):
5A A5 F3 82 80 00 44 47 55 53 5F 33 FB 29 00 00 10 A8 04 00 00 00 00 00
00 14 01 E0 01 E0 02 72 00 00 0E 20 FF D8 FF E0 00 10 4A 46 49 46 00 01
01 01 00 60 00 60 00 00 FF DB 00 43 00 03 02 02 03 02 02 03 03 03 03 04 03
03 04 05 08 05 05 04 04 05 0A 07 07 06 08 0C 0A 0C 0C 0B 0A 0B 0B 0D 0E
12 10 0D 0E 11 0E 0B 0B 10 16 10 11 13 14 15 15 15 0C 0F 17 18 16 14 18
12 14 15 14 FF DB 00 43 01 03 04 04 05 04 05 09 05 05 09 14 0D 0B 0D 14
14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14
14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 FF
C0 00 11 08 01 E0 01 E0 03 01 22 00 02 11 01 03 11 01 FF C4 00 1F 00 00
01 05 01 01 01 01 01 01 00 00 00 00 00 00 00 00 01 02 03 04 05 06 07 08 09
0A 0B
Article 2
00f0h-01dfh (240*2=480 bytes, 480=01e0h, the next address starts from
01e0h):
5A A5 F3 82 80 78 FF C4 00 B5 10 00 02 01 03 03 02 04 03 05 05 04 04 00
00 01 7D 01 02 03 00 04 11 05 12 21 31 41 06 13 51 61 07 22 71 14 32 81 91
A1 08 23 42 B1 C1 15 52 D1 F0 24 33 62 72 82 09 0A 16 17 18 19 1A 25 26
27 28 29 2A 34 35 36 37 38 39 3A 43 44 45 46 47 48 49 4A 53 54 55 56 57 58
59 5A 63 64 65 66 67 68 69 6A 73 74 75 76 77 78 79 7A 83 84 85 86 87 88 89
8A 92 93 94 95 96 97 98 99 9A A2 A3 A4 A5 A6 A7 A8 A9 AA B2 B3 B4 B5
B6 B7 B8 B9 BA C2 C3 C4 C5 C6 C7 C8 C9 CA D2 D3 D4 D5 D6 D7 D8 D9
DA E1 E2 E3 E4 E5 E6 E7 E8 E9 EA F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FF C4
00 1F 01 00 03 01 01 01 01 01 01 01 01 01 00 00 00 00 00 00 01 02 03 04 05
06 07 08 09 0A 0B FF C4 00 B5 11 00 02 01 02 04 04 03 04 07 05 04 04 00
01 02 77 00 01 02
Article 3
01e0h-02cfh (240*3=720 bytes, 720=02d0h, next address starts at 02d0h):
5A A5 F3 82 80 F0 03 11 04 05 21 31 06 12 41 51 07 61 71 13 22 32 81 08 14
42 91 A1 B1 C1 09 23 33 52 F0 15 62 72 D1 0A 16 24 34 E1 25 F1 17 18 19
1A 26 27 28 29 2A 35 36 37 38 39 3A 43 44 45 46 47 48 49 4A 53 54 55 56
57 58 59 5A 63 64 65 66 67 68 69 6A 73 74 75 76 77 78 79 7A 82 83 84 85 86
87 88 89 8A 92 93 94 95 96 97 98 99 9A A2 A3 A4 A5 A6 A7 A8 A9 AA B2 B3
B4 B5 B6 B7 B8 B9 BA C2 C3 C4 C5 C6 C7 C8 C9 CA D2 D3 D4 D5 D6 D7
D8 D9 DA E2 E3 E4 E5 E6 E7 E8 E9 EA F2 F3 F4 F5 F6 F7 F8 F9 FA FF DA
00 0F 03 01 00 02 11 03 11 00 3F 00 00 00 00 B1 45 14 57 F5 D9 F8 50 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00
Article 4
02d0h-03bfh (240*4=960 bytes, 960=03c0h, next address starts at 03c0h):
5A A5 F3 82 81 68 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 5
03c0h-04afh (240*5=1200 bytes, 1200=04b0h, next address starts at 04b0h):
5A A5 F3 82 81 E0 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
60
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Article 6
04b0h-059fh (240*6=1440 bytes, 1440=05a0h, next address starts at 05a0h):
5A A5 F3 82 82 58 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 7
05a0h-068fh (240*7=1680 bytes, 1680=0690h, next address starts at 0690h):
5A A5 F3 82 82 D0 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 8
0690h-077fh (240*8=1920 bytes, 1920=0780h, next address starts at 0780h):
5A A5 F3 82 83 48 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 9
0780h-086fh (240*9=2160 bytes, 2160=0870h, next address starts at 0870h):
5A A5 F3 82 83 C0 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 10
0870h-095fh (240*10=2400 bytes, 2400=0960h, next address starts from
0960h):
5A A5 F3 82 84 38 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 11
0960h-0a4fh (240*11=2640 bytes, 2640=0a50h, next address starts at 0a50h):
5A A5 F3 82 84 B0 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
61
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 12
0a50h-0b3f (240*12=2880 bytes, 2880=0b40h, next address starts at 0b40h):
5A A5 F3 82 85 28 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 13
0b40h-0c2fh (13*240=3120 bytes, 3120=0c30h, next address starts at 0c30h):
5A A5 F3 82 85 A0 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 14
0c30h-0d1fh (14*240=3360 bytes, 3360=0d20h, next address starts at 0d20):
5A A5 F3 82 86 18 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00
Article 15
0d20h-0e0fh (15*240=3600 bytes, 3600=0e10h, next address starts from
0e10h):
5A A5 F3 82 86 90 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00
Article 16
0e10h-0effh (16*240=3840 bytes,3840=0f00h, the next address starts from
0f00h):
5A A5 F3 82 87 08 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
62
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 17
0f00h-0fefh (17*240=4080 bytes,4080=0ff0h, the next address starts from
0ff0h):
5A A5 F3 82 87 80 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
Article 18
0ff0h-10dfh (18*240=4320 bytes, 4320=10e0h, the next address starts from
10e0h) The last one is only 182 Bytes, the data length must be correct.
5A A5 B9 82 87 F8 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45
14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14
00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00
51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51 45 14 00 51
45 14 00 51 45 14 00 51 45 14 01 FF D9
Here, 0x02 mode is used and the serial port updates the ICL file.
D11: 0x5A=Start one external memory operation, clear zero after CPU
operation.
D10: Operation mode. 0x02, write 32Kbytes data block to external SPI NOR
FLASH.
D9: D8: 32Kbytes memory block address, 0x0000-0x07FF, corresponding to
the whole SPI NOR memory.
D7: D6: The first address of the data variable space where the update data is
stored, must be even.
D5: D0: undefined, write 0x00.
5A A5 0F 82 00AA 5A 02 01 00 80 00 00 14 00 00 00 00
Read the write status (make a judgment whether the write is finished):
Read write status: 5A A5 04 83 00 AA 01
Return 5A02 means still writing: 5A A5 06 83 00 AA 01 5A 02
Read write status: 5A A5 04 83 00 AA 01
Return 0002 Description of write completion: 5A A5 06 83 00 AA 01 00 02
Write completion, reset command (equivalent to power down and power up
once, write completion can be reset once)
5A A5 07 82 00 04 55 AA 5A A5
63
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5. Caution
1. Update the black screen:
(1) Data sub-package error.
(2) Data update location is not correct, such as the 14.bin file updated to 32.icl,
it will empty the image data resulting in a black screen: 5A A5 0F 82 00 AA 5A
02 01 00 80 00 00 14 00 00 00 00 (e.g. RAM writes all 14 file data and writes
to 32. (e.g. RAM writes all 14 files, and writing to position 32 will clear the
picture data in Flash). 5A A5 0F 82 00 AA 5A 02 00 70 80 00 0014 00 00 00
00 00
2. Update the splash screen:
(1) A part of the image display screen: the last instruction data length check is
0xF3, if the data is less than 240 bytes, then the data length needs to be
modified;
(2) The data content part needs to be correct.
0xB0: 0 x5 AA5 = enable accessing touch control interface once. Clear after
CPU operation.
0xB1: Page ID of touch control.
0xB2: High byte: touch control ID (set in DGUS II development software),
0x01-0xFF;
Low byte: touch control code, 0x00-0x7F.
0xB3: Access mode
0xB4-0xD3: data to modify of mode 0x02, 0x03.
Mode 0x0000: turn off this touch control.
Mode 0x0001: turn on this touch control.
Mode 0x0002 : Read this touch control and write it to SRAM that 0xB4
pointing to.
Mode 0 x0003 : update current touch control with data that 0 xB4 pointing to,
the format and data length must be the same.
Example command:
Closes the 4 popup menu touch control in the routine, closing only part of the
page. See 0xFC address for closing all touches.
(1) Close command
Close the popup menu on page 0, sequence 2: 5A A5 0B 82 00B0 5AA5 0000
Touch instruction 02 01 0000
0xB0 access interface W 36 Close the pop-up menu on page 0, sequence 3: 5A A5 0B 82 00B0 5AA5 0000
03 01 0000
Close the pop-up menu on page 0, sequence 4: 5A A5 0B 82 00B0 5AA5 0000
04 01 0000
Close the pop-up menu on page 0, sequence 5: 5A A5 0B 82 00B0 5AA5 0000
05 01 0000
(2) Open after the above is closed
Open the pop-up menu on page 0, sequence 2: 5A A5 0B 82 00B0 5AA5 0000
02 01 0001
Open the pop-up menu on page 0, sequence 3: 5A A5 0B 82 00B0 5AA5 0000
03 01 0001
Open the pop-up menu on page 0, sequence 4: 5A A5 0B 82 00B0 5AA5 0000
04 01 0001
64
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(4)Command meaning
Close popup menu for page 0 order number 2: 5A A5 0B 82 00B0 5AA5 0000
02 01 0000
0x5AA5: start command access;
0x0000: Turn off the touch on page 0;
0x02 : Turn off the No. 2 sorting touch on page 0;
0x01: No. 2 sorting touch on page 0 is a pop-up menu, the function key code is
0x01, and the key code value is shown in the list of touch functions;
0x0000: Disable command.
Precautions:
The basic touch cannot be controlled to turn on/off. If there is a ranking
number in the PC software, it does not need to be counted in the number of
valid touches, that is, the sorting ID needs to be subtracted from the number
occupied by the front basic touch, such as 0000 page touch sequence 06 is
the basic touch, 07 is the pop-up menu, then the command to close the pop-up
menu is:
Correct: 5A A5 0B 82 00B0 0000 06 01 0000; touch sequence ID minus 1
invalid base touch.
Error: 5A A5 0B 82 00B0 0000 07 01 0000
65
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
If you need to change the specific attributes of the touch, you need to use
mode 03 to replace the pre-written touch file starting with 0xb4 in the attribute
configuration of the 13bin file.
66
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0 xD4: 0x5 AA5= enable the operation once, clear after operation.
0xD5: press mode. 0x0001=press, 0x0002=release, 0x0003=keep
pressing, 0x0004=touch (press + release)
0 xD6: X coordinate of press position.
0 xD7: Y coordinate of press position.
After simulating mode 0x0001 and 0x0003, must simulate 0x0002.
When the assembly touch function is running, x= 0 xAA:KH y=0 xA5: KL will
directly return the key values KH and KL to the assembly touch.
For example, when variables are input in assembly mode, the coordinates
( 0 xAAF0, 0 xA5 F0) will cause the input to end immediately.
When the 13 touch file is designed with keying function, X coordinate =
TP operation 0xFF: key code y coordinate = 0x0001 will trigger the corresponding
0xD4 W 5
simulation keying function.
E.g.
5AA5 0B 82 00D4 5AA5 0004 00EE 008F
0004 is click, press + lift, 00EE 008F (283,143) coordinates,
Press mode 0x0001= press; 0x0002= release; 0x0003= continue pressing
0x0004=click
After applying the simulated lift modes 0x0001 and 0x0003, there must be a
simulated lift mode of 0x0002.
( after “ touch panel sound control" is enabled, touch panel operation
simulation will also trigger the touch panel buzzer)
67
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
D3: write 0 x5 A to enable the CRC checking once, clear after operation.
D2 : memory type selection
0x00= font space ( 16Mbytes memory)
0x02= DWIN OS code
0x03= Nor flash database (LIB file).
D1:D0: data interface.
▶ Enable the CRC
0xE0 Memory CRC check R/W 2 Font check mode: D1= start font ID (256 KB for each font); D0= the number
of 4KB blocks checked, 0x00-0xFF.
OS code check mode: D1 : D0 = starting at 0 x10 0 0 , the byte length of OS
code to be checked is 0x0001-0x7000.
Nor flash database mode: D1 : D0 = Nor flash database ID, fixed validation of
4 KB data each time.
▶ After the check
0xE8-
Reserved 14 Undefined
0xEF
D7: 0x5A= enable the music playback operation, clear after operation.
D6 :mode, 0x00 = stop(clear the buffer), 0x01=suspend(reserve the
buffer), 0x02 = start.
This instruction is used to play online music files. First, send the music
flow data to a variable address between 0x1000 and 0xFFFF.
For example, the buffer address is 0x8000.
1.WAV conversion
Convert the stereo WAV file with the "Towav" tool to a single WAV file.
68
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Voice: Mono
Mono is a left channel or right channel voice, which can be used in the
files required by the above format.
Set the start address of the VP variable of DGUS screen to 0x8000, copy
an empty 22 file to the DWIN_SET folder, and copy the WAV data to the
start address of the 22 file at 0x10000. The DGUS screen is in MSB
mode, and the WAV and WAE files are in LSB mode, so when copying
the data, the first byte of the data portion will not be copied, and the whole
byte of the data will be shifted.
Interface of playing
0xF0 music flow data W 4
4. Instruction playback
Each time you send 8KWords data, 8KWords is 8*1024, that is, the
variable address interval is 0x2000. 1 thousand bytes (KB)
0x5A02: Write 0x5a to start a music playback, and the CPU operation is
cleared.
69
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x02 = Play
0x2000: The length of the music data that needs to be played, the
maximum 8KWords, the even number; the audio data is 16bit integer
format.
5. Explanation
DGUS MSB mode, WAV/WAE file is LSB mode, the first byte of the audio
data is removed, and the data is staggered as a whole.
70
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
This instruction is used after touching screen. Display the track of
coordinates in the designated area of the screen, which is generally used
in “ handwriting drawing function".
E.g.
0 x00 mode= normal mode
1 . Send drawing window instruction on a page:
Tx:5A A5 13 82 00 F4 5A 00 00 00 02 FF 00 00 00 2C 00 BC 00 D0 00 D0
2 . Hand touch panel drawing graphics
3. Switch page
4 . Switch back to the previous page, send the drawing window instruction
again, and the characters will be displayed again. In the upper left corner
of the window (44, 188), the coordinate point corresponds to the largest
208*
208 pixel drawing window.
0x01 mode: initialization mode
1. Send a drawing window instruction on a page,
Tx: 5A A5 13 82 00 F4 5A 01 00 00 02 FF 00 00 00 2C 00 BC 00 D0 00 D0
2 . Hand touch screen to draw graphics,
3 . Switch pages
4 . Switch back to the previous page, and send the drawing window
instruction again, the characters are no longer displayed, and the blank is
convenient for redrawing the graphics.
Writing 0x55 AA 5A A5 will stop the DGUS refresh, which is used to avoid the
conflict of rewriting fonts when there is no backup area to upgrade.
DGUS_ STOP_EN Write 0 x55 AA 5A AA will stop DGUS refresh, stop OS core running,
0xFC W 2
used for ED4 download fixed occupancy variable buffer
Instruction example:
Close all touch: 5A A5 07 82 00FC 55AA 5A5A
Open all touch: 5A A5 07 82 00FC 0000 0000
Close part of the touch can refer to the 0xB0 instruction.
71
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(1) Function description: The data displayed by the curve can be configured to be
read from the specified variable address when the OS is approved, which is
convenient for the display of the curve of the variable (such as temperature) with a
low refresh rate. It is necessary to upgrade the OS kernel program to V21 and
above.
The latest kernel link is in the compressed package of DGUS V60 software:
https://forums.dwin-global.com/index.php/forums/topic/notes-on-dwin-dgus-t5l-
The first channel curve kernel-firmwarev60-upgrade/
0x380 W 2
data automatic reading
configuration (2) For details on the setting, negative number setting and curve address range on
the curve DGUS software, see section 7.4.1 Real-time curve trend graph.
(3) Correspondence between the 8 channels and the starting address of the
system variable interface:
Channel 0: 0x0380
Channel 1: 0x0382
Channel 2: 0x0384
Channel 3: 0x0386
Channel 4: 0x0388
Channel 5: 0x038A
Channel 6: 0x038C
72
Channel 7: 0x038E
same time. The data range is 0 to 100, and the data is read once every 100ms. The
default variable address has the correct value. The command is as follows:
5AA5 0B 82 0380 5A0A 6000 5A0A 6001 ( separate from the start channel address,
continuous write operation can be completed by one instruction)
⑤ Use channel 0, channel 1, channel 2, channel 3, channel 4, channel 5, channel 6,
channel 7, and read data of address 0x6000, 0x6001, 0x6002, 0x6003, 0x6004,
0x6005, 0x6006, 0x6007 at the same time, the data range is 0 To 100, read once every
100ms, the default variable address has the correct value, the instruction is as follows:
5AA5 23 82 0380 5A0A 6000 5A0A 6001 5A0A 6002 5A0A 6003 5A0A 6004 5A0A
6005 5A0A 6006 5A0A 6007
Write multiple consecutive addresses to change data from the initial variable address,
and rewrite addresses 0x6000, 0x6001, 0x6002, 0x6003, 0x6004, 0x6005, 0x6006, and
0x6007 at the same time.
Write data 0, the instruction is as follows: 5AA5 13 82 6000 0000 0000 0000 0000 0000
0000 0000 0000
Write data 50, the instruction is as follows: 5AA5 13 82 6000 0032 0032 0032 0032
0032 0032 0032 0032
Write data 100, the instruction is as follows: 5AA5 13 82 6000 0064 0064 0064 0064
0064 0064 0064 0064
73
0x382 Channel 2-8 W 14 The definition is the same as channel 1.
configuration
Network
0x400- communication WiFi and other Internet communication equipment application control
0x500 - Multi- Media Multi- Media application interface, 0x500- 0 x57 F digital Multi-Media interface,
0x5BF interface R/W 192 0x580-0x5BF analog Multi-Media interface.
0x600-
Reserved Undefined. Not available for users.
0xEFF 2404
After setting variables to change the automatic upload function, this function is
enabled.
Variable change D3 =5 A means variable change,
0x0F00 R 2
indication D2 : D1= variable memory pointer,
D0 = variable length ( word).
E.g.
It is used to judge whether the touch data is uploaded to the serial port, or
whether there is a touch control operation change for uploading.
Because the time of this state is very short, it can't be read with the serial
port 0 x83 instruction. It is recommended to read the value of D3 with DWIN
OS and then judge.
Send: 5A A5 04 83 0F 00 02
Response: 5A A5 08 83 0F 00 02 0010 00 02 means that the variable address
0 x1000 has uploaded 2 words of data.
Application example 3: 0x0F00 variable space. After writing 0x5a + VP + Len, the
bottom layer will directly send the VP address. The data of the length of the Len
word is sent from UART2 to the serial port in the format of the 0x83 instruction.
Instruction format:
Send: 5A A5 07 82 0F00 5A 10 02 03
Answer: 5A A5 03 82 4F 4B
0xF02-
Reserved 254 Undefined, User cannot use.
0xFFF
74
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
75
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Use device interface 2 for 0# camera, storage location from address 0x010000, corresponding configuration instruction. 5A
A5 06 82 0120 (device interface 2) 80(0# device on) 8000(double word address for data storage)
The storage space is calculated according to 1bit per pixel, e.g., 640*480 resolution = 640*480/8192= 37.5KB, which can
be reserved as 40 KB.
Configuration
This is achieved by defining instructions at locations D27-D0 in the device interface ( or broadcast instruction data),
with D27 being the instruction and D26- D0 being the data. The instruction set is as follows .
The data not used in the configuration is not written or not sent.
Configure the 0# camera resolution of device interface 2 to 640*480, left and right mirroring.
The corresponding configuration instruction is as follow.
5 A A5 0D 82 0120 80 8000 02 (transmit only 2 double words) 51(camera configuration instruction) 80 (left and
right mirroring) 02 80 01 E0
76
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
WiFi- 10 is specially designed for the DGUS development platform, and the data interfaces have been defined, which
greatly reduces the development difficulty and shortens the development time for users.
DWIN DGUS II platform ( including T5 series and T5 L series) has open network interface with WiFi module. Through
simple DGUS development, you can access DWIN cloud. Based on DWIN' s cloud platform, customers can realize
remote APP control, data analysis, equipment operation and other functions.
Note: The green filled part of the table indicates that the user can choose to modify it according to the actual
situation.
For other parts, it is generally recommended to keep the default value and configure the 22 . bin file corresponding to
the double byte address.
Length Recommended
Definition Address Instructions
(Word) value(hex)
D5-D4: 0x5AA5 enable the RMA spatial data uploading to the server, clear
after operation.
D3 - D2: RMA variable memory address to be uploaded.
D1-D0: the word length of the RMA variable memory to be uploaded.
0000
RAM ALARM 0x401 (Currently up to 4KByte)
3 0000
Recommended value description: It is used to transmit the data of the variable
0000
address on the screen to the Cloud server, which is usually applied to the
Cloud call view of the alarm history information and other parameters. If you
do not need to use this function, you can fill in 0000 by default in 22 file.
77
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
RMA read space size in 128 Words with a maximum size of 2KBytes
Device and 0 x0000 indicates forbidden reading.
Description 1 0004
0x432 Recommended value description: 0x0004 indicates that the read
( RMA Mapping)
space size is 512 Words, which can be set to 0x01F4 at most.
RMA write space start address, can overlap with the read space, can
not write out of bounds.
0x433 1 2000
Recommended value description: 0x2000 indicates that the space is
read from the address of 0x2000.
78
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x439 1 0064 Remote upgrade packet timeout timer configuration in 0.1 second.
The first remote upgrade space for the device ( aligned to 4 KB) is
defined:
5A 00010 00000 0F00
D7 : 0x5A indicates that the remote upgrade space is enabled.
4
0x43A D6 - D3 : 32 - bit start address of the upgradeable space ( lower 12 bits
is 0), up to 4 GB.
0x43E 4 5A00 0000 0000 0000 The second remote upgradeable space definition for the device
0x442 4 All 00 The third remote upgradeable space definition for the device
0x446 4 All 00 The fourth remote upgrade space definition for the device.
Remote upgrade Buffer interface definition:
D0: the starting address of Buffer0 is high byte ( word address) and low
address is 8bit 0x00.
0x44A 2 5A 00 08 B0 00
Each Buffer is fixed in 2304 words ( 0x900) space, which is arranged in
the back row.
A single Buffer definition ( the first 512 bytes is the control interface, the
next 4KB is the data):
D0:0x5A means to start the remote upgrade of this buffer once, and clear
it after CPU processing.
D2-D5 : Write the destination address of the remote upgrade space. The
lower 12 bits are 0 (aligned to 4KB).
D10-D511: Reserved.
79
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Device QR code.
Device The QR code is automatically generated according to the device
Description QR 0x450 48 description data of 0x411, 0x413, and 0x414, and the function of
Code downloading the APP, binding the device, and paying attention to the
public number can be implemented with the mobile phone.
"DWD100".
80
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
D7: Writing 5 A means starting the WiFi configure network, and the
configure network is completed. The value is cleared to 0 .
D6: 0x5A means to start the network name and password to connect to
the router ( the network name and password are saved at0 x4 B0 )
D7-D6 , as long as it is started once, D7-D6 will be cleared at the same
time after completion. The two Internet access modes cannot be
started at the same time. If they are all 5A, the one- click configure
network takes precedence.
D5: Network time 5 A means the screen comes with RTC (0x9 C); 5B
WiFi_ Config 0x498 4
means RTC library RTC (0xF430)
D4- D2: Reserved.
D1: The WiFi module is automatically upgraded. 5 A means enable.
D0: Soft reset. 5A initiates reset and reset is cleared to 0.
The user can design the configure button in the UI.
Start manual configure network touch button ( press to return 0 x498
address write 0x005A)
Start one- key configure network touch button ( press to return 0 x498
address write 0x5A00 )
81
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
WiFi-10 actively reads 0x490 and other registers every 0.1 s- 0.2 s ( the register that DGUS issues instructions to WiFi-
10).
WiFi-10 will write its status to the DGUS register every 3- 5 seconds ( the status of the WiFi module: 0 x480 , 0 x4A0,
etc.).
After completing the configure operation on the DGUS screen or mobile app, WiFi-10 will automatically access the
Internet and start running data synchronization.
The device description information is configured in the 22 initialization file 0x0800-0x09FF byte addresses
corresponding contents. ( The underlying program will automatically handle regardless of the 22 file initialization variable
buffer function enabled or not).
Server mapped memory debug interface website: http:/ / tools. dwinhmi. com. cn/
82
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The touch variable configuration is stored in the 1 3 . BIN, which consists of touch instructions according to the control
configurations.
Each touch instruction occupies a fixed storage space of 16, 32 or 48 bytes and consists of 6 parts, as shown below.
Page ID, the high 4 bit is the audio ID selection of this button, 0 x00 means without touch
1 Pic_ID 2
voice.
The touch button area coordinates the upper left corner ( Xs, Ys) and the lower right
corner (Xe, Ye).
2 TP_ Area 8 Setting the button region outside the screen resolution simulates triggering touch- screen
buttons in the system variable interface with specific key values.
3 Pic_Next 2 Target page ID after button pressing, 0xFF** indicates without page switching.
ID of the page where the effect picture is when the button is pressed, 0xFF* * indicates
4 Pic_ On 2 without pressing effect.
83
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Drag Adjustment Drag the slider to achieve variable data entry. The range
04 03 1
can be set.
Click the button to directly return the key value to the
05 05 Return Key Code 1 variable. Support bit variable return.
Support press time threshold setting.
12 0D Bit Button 1 Click button to specify bit adjustment for specified variable.
You can dynamically turn on, off, or modify the specified touch instruction by UART or DWIN OS access to the touch
instruction access interface defined in 0 x00B0 variable space to achieve complex touch functions.
84
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
You can achieve touch screen simulation operation by this control with 0xD4 instruction. That means when the
operation is not completed and the pop- up keyboard is in non- operation state, you can use 0xD4 instruction to exit
the pop- up keyboard state after a specified time.
You can also use it to input integers, fixed decimals and other data into the specified variable storage space on the
current page or the pop- up keyboard. And the pop- up keyboard transparency can be set.
0x0A Pic_ Next 2 Target switch page, 0xFF** means no page switch
0x0C Pic_ On 2 Button press effect page, 0xFF** means no button press effect.
Display color
0x1A Color 2 Undefinedwhen using configurationkeyboard (KB_ Source= 0x0F)
Cursor color.
0x1E Cusor_ Color 1 Undefinedwhen using configuration keyboard ( KB_ Source= 0x0 F)
85
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x20 0x FE 1 0xFE
0x00=Current page;
0x21 KB_ Source 1 0x01=Other page;
0 x0F= Assembly keyboard
The page ID where the keyboard is located is valid only if
KB_Source is not equal to 0x00 .
0x22 PIC_ KB 2
Assembly keyboard ( KB_ Source=0 x0 F) = assembly function file
0x24 AREA_ KB 8 Keyboard area: upper left coordinate ( Xs, Ys), lower right coordinate
(Xe, Ye).
0x3B Return_ VP 2 The VP address where the data is loaded during entry.
0x3D Return_ Data 2 Data loaded into Return_ VP during entry.
When the keyboard or the numeric input configuration keyboard
0x3F Layer_ Gama pops up, the background transparency can be set within
1
0x00~0xFF. 0x00 means 100% opaque.
Note: The valid key codes for digital input are 0x0030-0x0039, 0x002E(.), 0x002D(+/-), 0x00F0(Cancel), 0x00F1(OK),
0x00F2( Backspace).
86
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
87
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner (Xe, Ye).
0x0C Pic_ On 2 Button press effect page. 0xFF** means no button press effect.
0x10 0xFE 1 0x FE
0x16 Area_ Menu 8 Menu area: upper left coordinate (Xs, Ys), lower right coordinate (Xe, Ye).
0x1E Menu_ Position_x 2 Upper left corner x- coordinate of the current page
0x20 0xFE 1 0x FE
0x21 Menu_ Position_Y 2 Upper left corner y- coordinate of the current page
The transparency setting.
0x23 Translucent 1 The background transparency can be set within 0x00 ~ 0xFF. 0x00 means
100% opaque.
88
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
89
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner ( Xe, Ye).
0x0C Pic_On 2 Button press effect page. 0xFF** means no button press effect
0 x00 : Disabled. The value stops changing when max. or min. values are
reached.
0x15 Return_ Mode 1 Other Values: Enabled. The value loops around the range when it reaches
max.
90
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
91
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Drag adjustment is to change and adjust the data pattern by dragging the slider.
The advantage is that it is intuitive, fast, and the parameters do not cross the boundary.
In combination with the " Data Variables" control, the data can be dragged for precise display and the scale range
can be set.
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner (Xe, Ye).
0x0C Pic_ On 2 Button press effect page. 0xFF** means no button press effect
0x10 0xFE 1 0x FE
Effective adjustment area: ( Xs, Ys) (Xe, Ye), which must be the same as
0x14 Area_ Adj 8
the touch area.
0x1C V_ Begin 2 The return value corresponding to the starting position, an integer.
0x1E V_ End 2 The return value corresponding to the end position, an integer.
92
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
93
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x02 TP_ Area 8 Area of the control: upper left corner (Xs, Ys), lower right corner (Xe, Ye).
0x0C Pic_ On 2 Button press effect page. 0xFF** means no button press effect.
0x10 0xFE 1 0x FE
Unit of 0.1s. There will be a response when the press time exceed the
0x16 Hold_ Time 1 Hold_ Time.
94
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
95
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
6.7 Text Input
Text Input includes ASCII and GBK Chinese characters. You can move the cursor and edit during input. The input
status and input length saved at (VP-1) address can be set.
The transparency of ASCII input keyboard is adjustable.
Key codes are the key values defined for basic keyboard operations . The lower byte of the two- byte key code
indicates the normal key code, and the higher byte indicates the uppercase key code.
Besides, the key code must be smaller than 0x80 (ASCII code) . 0x0D key code input will be automatically converted to
0x0D 0x0A; 0x00 and 0xFF key codes are disabled.
5 y Y h H n N
0x2535 % 0x5979 0x4868 0x4E6E
0x2B30 = + 0x7C5C \ |
96
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x00F0 Cancel Cancel input code return, not affecting the variable data.
0x00F1 Return Confirm input code return, and the input text is saved to the specified VP.
Caps lock. If enabled, the corresponding button must define the effect of the button
0x00F4 CapsLock
press, i. e. there must be a press effect page in the project .
Move the cursor forward by one character; it is used to turn pages in GBK Chinese
0x00F7 Left
character input.
Move the cursor back by one character; it is used to turn pages in GBK Chinese
0x00F8 Right
character input.
Used to switch between different keyboard backgrounds in order when they are not on
0x00F9
the current page.
Picture_ KB_ Change 0 x00F9: 2 background pages, PIC_KB and PIC_KB+ 1.
0x00FA
0 x00FA: 3 background pages, PIC_KB, PIC_KB+ 1, PIC_KB+2.
In case of using the keyboard (keycode in the 0x4 F register) for text input, if you use the CapsLock key, please define
the button animation in the area where you want to indicate " CapsLock"; after this, when you press the CapsLock key,
the area icon of " CapsLock" will be displayed on the screen automatically.
97
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Control area: upper left corner ( Xs, Ys), lower right corner
0x02 TP_ Area 8
(Xe, Ye).
0x0C Pic_ On 2 Button press effect page. 0xFF** means no button press effect.
0x10 0xFE 1 0x FE
Max text length, in words ( two characters for each word) . Range:
[0x01,0x7B].
VP_ Len_ Max When the text is saved in the specific VP, 0xFFFF will be added as
0x13 1
terminator at the ending of the text. Thus the max variable space is
actually VP_ Len_ Max+1 .
Font height, in pixels. When " Lib_ ID" = 0 x00 , it must be twice the
0x17 Font_ Ver 1
width.
Upper- left coordinates of the area where the text will be displayed:
0x1B Scan_ Area_ Start 4
(Xs, Ys).
0 x55 = save the input end tag and valid data length at the * (vp-1 )
position.
* (vp-1) high byte, input end mark: 0x5 A means input end, 0 x00
0x1F Scan_ Return_ Mode 1 means idle or input state.
* (vp-1) low byte, effective input data length, in byte.
0 x00= does not return the input end tag and data length.
0x20 0xFE 1 0x FE
98
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The page where the keyboard is located ( valid when the keyboard
0x26 PIC_KB 2 is not on the current page)
Keyboard area coordinates: upper left corner ( Xs, Ys), lower right
0x28 Area_ KB 8 corner( Xe, Ye).
99
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
100
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Length
Address Definition Description
(byte)
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner ( Xe, Ye).
0x0C Pic_On 2 Button press effect page. 0xFF** means no button press effect
Input mode.
0x14 Scan_ Mode 1 0x00: re-input, 0x01: modify existing text.
0x15 Lib GBK1 1 Index in the FLASH memory of the GBK Font to use after entry. 0x00= default.
0x16 Lib_GBK2 1 Index in the FLASH memory of the GBK Font to use before entry.
The display of pinyin hints and corresponding Chinese characters during entry.
* 0 x00 = pinyin hints are displayed on the top and the corresponding Chinese
characters are displayed on a separate line at the bottom.
Pinyin hints and Chinese characters are displayed left- aligned, with Scan_ Dis line
spacing.
0x1E 1
* 0 x01 = Pinyin hints are displayed on the left, and the corresponding Chinese
characters are displayed on the right.
PY_ Display_ Mode
The starting display x position of the Chinese character is: Scan1 _ Area_ Start+ 3 x
Font_ Scale2+ Scan_ Dis.
101
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0xAA=Save the input end mark and valid data length at *( VP-1).
*(VP-1) high byte, end of input mark: 0x5A means end of input, 0x00 means input is
0x1F Scan_ Return_ Mode 1
still in progress.
* (VP-1) low byte, valid input data length in byte.
* 0xFF= Not return the input end mark and data length.
0x33 Area_ KB 8 Keyboard area coordinates: upper left corner ( Xs, Ys), lower right corner( Xe, Ye).
Upper- left coordinates of the keyboard. ( valid when the keyboard is not on the
0x3B Area_ KB_ Position 4 current page)
0x02= pinyin input method
0x3F Scan_ Mode 1
0 x03 = phonetic input method.
Note
Pinyin " bd" corresponds to all GBK- coded full- width punctuation entry;
DWIN' s pre-installed 0# font library contains all ASCII characters of 4*8--64*128 dot matrix.
The key code ( low byte) of the phonetic input method is defined as below ( the phonetic input method is mainly used
in Taiwan).
102
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
6 .7 . 2 . 2 Software Setting
103
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
6.8 Synchrodata Return
There are three states of synchrodata return control: first pressing, continuous pressing, and releasing. Click the
touch screen to return the data to the variable according to the regulations.
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner ( Xe, Ye).
0x0A Pic_ Next 2 Switch target page. 0xFF** means no page switch.
0x0C Pic_On 2 Button press effect page. 0xFF** means no button press effect
0x12 VP1 S 2 Read the data in the address when first pressing.
0x14 VP1 T 2 Write the data to the address when first pressing.
0x19 TP_ On_ Continue_ Mode 1 0 x01 = read the LEN2 length data pointed to by * VP2 S and send it to UART
2 in DGUS serial port protocol format.
0x1A VP2 S 2 Read the data in the address when continuous pressing.
0x1C VP2 T 2 Write the data in the address when continuous pressing.
0x1E 0x00 1 0x00
Return data length in bytes. When TP_ On_ Continuous_ Mode=0 x01,LEN2
0x1F LEN2 1
must be even.
0x22 VP3 S 2 Read the data in the address when the screen is released.
0x24 VP3 T 2 Write the data in the address when the screen is released.
104
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
105
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
106
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
6 .9 Rotation Adjustment
The rotation adjustment realizes variable data input by turning the knob, and can realize arc type drag adjustment.
Length
Address Definition Description
(byte)
0x00 Pic_ID 2 Page ID
0x02 TP Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner ( Xe, Ye).
0x0A Pic_Next 2 Switch target page. 0xFF** means no page switch.
0x0C Pic_On 2 Button press effect page. 0xFF** means no button press effect.
0x0E TP_ Code 2 0 xFE09 , rotation adjustment key code.
0x13 Data_ Format 1 0x01: Adjust high byte of the VP( 1-byte unsigned integer, VP_H)
0x02: Adjust low byte of the VP( 1-byte unsigned integer, VP_L)
[ Note] The rotation adjustment needs to be used with the icon rotation control" , and it is always assumed to be
clockwise.
107
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
108
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner (Xe, Ye).
0x0A Pic_ Next 2 Switch target page. 0xFF** means no page switch.
0x0C Pic_ On 2 Button press effect page. 0xFF** means no button press effect.
* VP reserved:
0x11 *VP 2 *VP+ 1 return data:
High byte: adjustment direction. 0x00 = increase; 0xFF=decrease
Low byte: adjustment size.
109
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
If there are other touch buttons on the page at the same time, and the whole page ( including the touch buttons)
needs to be switched by gesture, the touch priority of the page sliding must be set to the highest.
Length
Address Definition Description
(byte)
0x02 TP_ Area 8 Area of the control: upper left corner ( Xs, Ys), lower right corner (Xe, Ye).
0x0A Pic_ Next 2 Switch target page. 0xFF** means no page switch.
0x0C Pic_ On 2 Button press effect page. 0xFF** means no button press effect.
0x15 Pic_ Area ( Ys, Ye) defines the area valid for page sliding in the Y- axis direction.
4
110
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
111
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Sliding icon selection cooperates with icon page trans ( JPEG icon panning display) to realize icon page sliding
selection.
Steps:
(1) Arrange the icons (program or menu index) to be used on the JPEG images with a resolution less than 4079*4079
( no more than 256KB after T5L1 compression, 768KB for T5L2).
(2) Define a touch of a virtual page for this image (similar to the pop- up keyboard).
( 3 ) Place a window on the page to be used, and then you can ( or write the VP+ 2 position integer value to UART to
achieve movement) to slide the screen and choose icon.
Area of the Control: upper left corner ( Xs, Ys) , lower right corner
Icon ID
0x14 TP_ Page_ID _ICON 2
0x0000= undefined
112
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
113
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
6.13 Bit button
Click the button to specify the bit adjustment for the specified variable. It can be used in combination with the bit
variable icon display control, for example, 1 group of 16 devices corresponding to 16 bit addresses, you can set the
variable address for each bit to start and stop the device operation.
0x02 TP_ Area 8 Area of the Control: (Xs, Ys), (Xe, Ye)
0x0A Pic_Next 2 The target page to switch to, 0xFF** means no page switch. Must be 0xFF**.
The page where the button press effect image is located, 0xFF** means there is
0x0C Pic_On 2
no button press effect.
Adjustment mode.
0x00=returns 0.
0x14 Adj_ Mode 1 0x01=returns 1.
0x02= inversion.
0 x03 = 1 when the button is pressed, 0 when the button is released.
114
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
115
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(9) Write instruction, bit0, bit2, bit4, bit6, bit8, bit10, bit12, bit14 on
Tx: 5AA5 05 82 5000 5555; 0x5555 is obtained by converting binary data 0 10 1 010 1 0 101 010 1 0 10 1 into
hexadecimal data.
(10) Write instruction, bit1, bit3, bit5, bit7, bit9, bit11, bit13, bit15 on
Tx: 5AA5 05 82 5000 AAAA; 0xAAAA is obtained by converting the binary data 1010 1010 10 10 10 10 into
hexadecimal data.
6.13.4 Effect
116
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The display variable configuration is stored in the 14. BIN, which consists of display instructions according to the
control configurations.
Each display instruction occupies a fixed storage space of 32 bytes Each page has a fixed allocation of 2 KB, 4 KB or
8 KB (0x0800, 0x1000 or 0x2000) of variable storage space, i.e. up to 64, 128 or 255 variables per page. The
maximum size of the 14. BIN file is 2 MB, which means up to 1024 pages can be configured (512 pages in 128 - variable
mode and 255 pages in 255- variable mode)
For 16 MBFLASH products, one 256 KB subspace in FLASH is fixed as 14 . BIN configuration file space, that is, under
the fixed allocation of 2KB, 4KB or 8KB (64,128 or 255 variables) variable storage space per page, up to 128 pages
(64 pages in 128-variable mode, 32 pages in 255-variable mode).
For the same type of variables, the higher the storage location, the higher the display priority.
14 . BIN can be generated by DGUS and used in applications with touch variables, associated VP, modification of 2 2
file, SP, access via UART or DWIN OS to achieve complex functions.
1 0x5A 1 Fixed
The variable description file is loaded from Flash and stored to the
3 *SP 2 address pointer of the data storage area.
0xFFFF means not dumped to the data storage area.
The variable address is 0x0000 - 0xFFFF. For some variables that do not
5 *VP 2 need to specify VP, write 0x0000.
When the high byte of VP is 0xFF, this instruction will be canceled.
117
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.1 List of Display Variables
Data Length
Number Code Variable name Description
( Character)
The change range of a data variable linearly corresponds to a group of
icon display; when the variable changes, the icon automatically switches
01 0x00 Variable Icon 1 accordingly. It is mostly used for detailed dashboard and progress bar
display.
Support background overlay and transparency settings. Background filter
intensity can be set.
A fixed value data variable corresponds to 3 different icon indication
states: not display, display fixed icon, and display animation icon. It is
mostly used for variable alarm prompts.
The variable occupies 2 word positions, and the (VP+1) position is reserved;
02 0x01 Animation Icon 2 the icon ID cannot exceed 255 (0xFF).
Support background overlay, transparency settings. And animation speed
settings. Support single play mode. Background filter intensity can be set.
The change range of a data variable corresponds to the change of the
display position of an icon (slider). It is mostly used for the indication of
liquid level, dial and progress meter.
03 0x02 Slider Display 1
Support background overlay and transparency settings. Background filter
intensity can be set.
Use icon to replace font library to display variable data.
Support background overlay and transparency settings. Background filter
04 0x03 Artistic Variables 1/2/4
intensity can be set.
Icon Page Tran Icon sliding selection can be achieved by combining this control with 0 x0 C
08 0X07 4
touch variables.
Background filter intensity can be set.
The JPEG icon of the variable buffer is superimposed and displayed in the
specified area of the current page, and the display brightness and
transparency can be set.
09 0x08 Icon Overlay Max 120KB VP= 5AA5: turns on the display; VP+1=JPEG data buffer length;
VP+2= JPEG data start.
Background filter intensity can be set.
According to the definition of the variable buffer, the icon is quickly copied
Max
10 0x09 Batch Va Icon from the background or video memory and displayed to the specified
64KB
location.
118
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
14 0x12_01 RTC Display(Watch) None The calendar RTC is displayed with a pointer dial using the icon rotation.
16 0x14 Text Scroll User- defined Scroll the text stored in VP in the designated area of the screen.
Display the data variable in a designated display window, and highlight
the selected value. Combined with the touch screen sliding or
incremental adjustment, the data can be scrolled and displayed. It can
17 0x15 Data Window 2 also be controlled by DWIN OS to adjust the speed. Supports saw
tooth optimized 8 bit encoding font library.
The variable occupies 2 word positions, and the (VP+1) position is
reserved.
Based on DGUS II font, display the string in the specified text box
18 0x16 DGUSII Text Max 2K display area, and scaling is not supported.
Compared to 0x11 text display, 0x16 mainly displays text without
jaggies in multiple language from direct font libraries.
The basic functions are the same as the data window instructions.
19 0x17 Roll Character Max 2 Increase the process animation display, increase the input method
keyboard and text scrolling selection.
20 0x18 GTF Icon Max 128 Display icons with high efficiency.
Based on the curve buffer data to automatically match and display the
real- time curve (trend graph). You can specify the display area, center
21 0x20 Real- Time Curves 2 K/ channel
axis coordinates, display scale (enlarge/ reduce) , and set the direction
of the curve.
23 0x21_02 Graphic_ End Connection End point connection (color, (x0, y0), ... (xn, yn).
24 0x21_03 Graphic_ Rectangle Display rectangle, color, position and size are controllable.
Fill the specified rectangular area with controllable fill color, position
25 0x21_04 Graphic_ Rectangle Fill
and size.
User- defined Displays the circle as center and radius. The color and thickness of the
26 0x21_05 Graphic_ Circle Display
circle can be set.
Graphic_ Picture Copy Copy an area from the specified image and paste it on the currently
27 0x21_06
paste displayed page.
28 0x21_07 Graphic_ ICON Display The ICON is displayed, and the icon library can be selected.
Graphic_ Enclosed Area Select the seed position and fill the enclosed solid color area with the
29 0x21_08
Fill specified color.
119
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Display the arc of the ellipse according to the center of the ellipse, the
31 0x21_11 Drawing_Ellipse arc
major axis, the minor axis, and the display color.
display
Adjust the Area Display Adjust the display brightness of the designated display area to
32 0x21_0D
Brightness highlight or dilute the background display.
Graphic_ Dual Color Select the seed position and fill the enclosed solid color area with the
33 0x21_0E
Bitmap Display specified color.
Every 2 bits represents 1 point, and the four- color bitmap display is
Drawing_ four- color performed quickly in the specified area.
34 0x21_12
bitmap display Multiple four- color bitmap display areas can be defined, and multiple
layers can be used for more color display.
Move the content of the specified area in a circular manner, and the
direction of movement can be set.
36 0x24 Area Scrolling 1 Used to simply implement dynamic running effects such as flowcharts
and progress bars. The variable address is occupied by the system
and should not be used by users.
Note: VP refers to the storage location (pointer) of the user variable storage space.
Set the variable SP during the development by DGUS, and store the display variable configuration information in
the user variable space pointed to by the variable SP.
In the application, it can be accessed through UART or DWIN OS, dynamically open, close or modify the variable
configuration information to realize the complex display variable combination function.
120
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
This display function is usually used with incremental adjustment and text input.
Length
Address SP offset Definition Description
(bytes)
0x00 0x5A00 2
Variable description pointer, 0xFFFF means loaded by the
0x02 *SP 2
configuration file.
0x04 0x000A 2
0x0C 0x03 V_ Min 2 Min value. Values smaller than " V_ Min" will show no Icons.
0x0E 0x04 V_ Max 2 Max value. Values greater than " V_ Max" will show no Icons.
0x14 0x07:H Icon_ Lib 1 Index in the FLASH memory of the icon library to use.
Display mode:
0 x00 = transparency mode
0x15 0x07:L Mode 1
Others= background display
0x00: overlay
0x17 0x08:L ICON_ Gamma 1 Icon brightness in overlay mode 2, range 0x00-0xFF, unit 1/256.
Background brightness in overlay mode 2, range 0 x00 - 0xFF, unit
PIC_ Gamma 1
0x18 0x09:H 1/256.
121
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
122
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 05 82 5012 0000
0x5012: VP;
5A A5 05 82 5012 0001
0x5012: VP;
5A A5 05 82 5010 0002
This instruction can call the icon ID that does not exist, it will not be displayed, and 0x0002 is the limit value.
Hide and move the position need to use the description pointer. For the detailed explanation of the description pointer,
see the data variable display description pointer instruction section.
123
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x00 0x5A01 2
Parameter pointer.
0x02 SP 2
0xFFFF: Disables SP ( no run- time modification).
0x04 0x000D 2
Variable pointer.
0x06 0x00 VP 2 High word: Unsigned Integer(0x0000- 0xFFFF). stores animation status.
Low word: Reserved
0x14 0x07 ICON_ Start 2 Icon displayed at the first frame of the animation.
0x16 0x08 ICON_ End 2 Icon displayed at the last frame of the animation.
0x18 0x09:H ICON_ Lib 1 Index in the FLASH memory of the icon library to use.
ICON display mode:
0x1B 0x0A:L ICON_ Gamma 1 ICON brightness in overlay mode 2, range 0x00-0xFF, unit 1/256.
0x1D 0x0B:L Time 1 Time of single ICON, unit DGUS cycle, range 0x01 -0xFF.
0x00: loop mode. 0x01: single mode.
When the variable is VP_ Stop, it play an animation once from
Icon_ End to Icon_ Start.
0x1E 0x0C:H Display mode 1
When the variable is VP_ Start, it play an animation once from Icon_ Start
to Icon_ End.
When the variable are other values, it display stop icon.
0x1F 0x0C:L Filter_ Set 1 Filter set value in transparency mode, range 0x00-0x3F.
124
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
125
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 Frame header;
05 Data length;
82 Write instruction;
6550 VP;
0001 Write 1 to start animation value.
5A A5 Frame header;
05 Data length;
82 Write instruction;
6550 VP;
0000 write 0 to stop animation value.
③ Sequential animation, single play mode, animation display mode needs to be set to single play.
5A A5 05 82 5650 0001
5A A5 Frame header;
05 Data length;
82 Write instruction;
6550 VP;
0001 Play once.
After playing in sequence, it needs to be played in reverse order, not in sequence all the time.
④Reverse order animation, single play mode, animation display mode needs to be set to single play.
5A A5 05 82 5650 0000
5A A5 Frame header;
05 Data length;
82 Write instruction;
6550 VP;
0000 Play in reverse order.
126
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.3.4 Effect
A set of icons for animation icon.
127
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Background overlay and transparency settings are supported, and the background filtering strength can be set.
SP Length
Address Definition Description
offset (bytes)
0x00 0x5A02 2
Parameter pointer.
0x02 *SP 2 0xFFFF: Disables SP ( no run- time modification)
0x04 0x000C 2
0x06 0x00 VP 2 Variable pointer.
Index of the icon in the icon library that will be used as the Slider
0x10 0x05 ICON_ ID 2 handle.
0x16 0x08:H ICON_ Lib 1 Index in the FLASH memory of the icon library to use.
ICON display mode:
0x17 0x08:L ICON_ Mode 1 0 x00: Transparent background.
Other Values: Opaque background
Value Memory Size.
0 x00: *VP points to the VP(integer).
0x18 0x09:H VP_ Data_Mode 1 0 x01: * VP points to the High Byte of the VP( VP_ H).
0x02: * VP points to the Low Byte of the VP( VP_ L).
0x00: overlay
0x01: overlay mode1
0x19 0x09:L Layer_ Mode 1
0x02: overlay mode 2
0x1A 0x0A:H ICON_ Gamma 1 ICON brightness in overlay mode 2, range 0x00-0xFF, unit 1/256.
0x1B 0x0A:L PIC_ Gamma 1 Background brightness in overlay mode 2, range0x00-0xFF, 1/256 .
0x1C 0x0B:H Filter_ Set 1 Filter set value in transparency mode, range0x00-0x3 F.
128
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.4.4 Effect
129
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
It supports background overlay and transparency settings, and the background filtering strength can be set.
Address SP Definition Length Description
offset (bytes)
0x00 0x5A03 2
Parameter pointer.
0x02 *SP 2
0xFFFF: Disables SP ( no run- time modification).
0x04 0x0009 2
0x06 0x00 VP 2 Variable pointer.
Start display position:
Upper- left coordinates of the icons to display in Left- alignment
0x08 0x01 (X,Y) 4 mode or Upper- right coordinates of the icons to display in Right-
alignment mode.
0x0E 0x04:H ICON Lib 1 Index in the FLASH memory of the icon library to use.
0 x00 : Transparent background.
0x0F 0x04:L ICON_ Mode 1
Other Values: Opaque background
0x10 0x05:H Integer_ Digits 1 Number of digits to the left of the decimal separator.
0x11 0x05:L Decimal_ Digits 1 Number of digits to the right of the decimal separator.
Value Memory Size.
0x00: 16-bit Integer(2 bytes). Range: -32768 ~ 32767
0x01: 32-bit Integer(4 bytes). Range: -2147483648 ~ 2147483647 0
x02: 8- bit Unsigned Integer in High Byte of the VP. Range: 0 ~ 255
0x03: 8-bit Unsigned Integer in Low Byte of the VP. Range: 0 ~ 255
0x12 0x06:H VP_ Mode 0x04: 64-bit Integer(8 bytes). Range: -9223372036854775808 ~
1
9223372036854775807
0x05: 16-bit Unsigned Integer(2 bytes). Range: 0 ~ 65535
0x06: 32-bit Unsigned Integer(4 bytes). Range: 0 ~ 4294967295
0x07: float point number(4 bytes)
0 x08: double float point number(8 bytes)
0 x00: Left- alignment.
0x13 0x06:L Alignment 1
0x01: Right- alignment.
0x00: overlay
0x15 0x07:L ICON Gamma 1 Icon brightness in overlay mode 2, range 0x00-0xFF, unit 1/256 .
Background brightness in overlay mode 2, range 0x00 - 0xFF, unit
0x16 0x08:H PIC_ Gamma 1 1/256.
0x17 0x08:L Filter_ Set 1 Filter set value in transparency mode, range0x00-0x3 F.
130
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.5.4 Effect
131
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (bytes)
0x00 0x5A04 2
0x02 *SP 2
0x04 0x0005 2
0x0C 0x03:H Frame_Time 1 The display time of one frame (one picture), the unit is 8ms.
0x0D 0x03:L Picture library file location, 0x00-0xff, 0x00 indicates the use of the background icon
ICL_LIB_ID 1
library.
0x0E 2 When using NAND FLASH to extend the animation stored in it, the page position
0x04 Pic_End_Exp automatically returned after the play is over.
132
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x07: Data length;
0x0084 System variable interface address, which is a fixed switching page address . Refer to the section 7. 1 for more
details.
0x5A01 : Fixed. The high byte 0x5A means that page processing is started once, and the CPU is cleared after
processing; the low byte 0 x01 means that the page is switched, and the picture specified in the picture storage area
is displayed to the current background page; see the system variable interface list for details.
7.6.4 Effect
133
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (bytes)
0x00 0x5A05
Parameter pointer.
0x02 SP 2
0xFFFF: Disables SP (Non run- time modification).
0x0E 0x04 xc 2 The x coordinates of the icon rotation center on the current page.
0x10 0x05 Yc 2 The y coordinates of the icon rotation center on the current page.
0x16 0x08 AL_ Begin 2 Starting rotation angle, 0-720 (0x000-0x2D0), unit 0.5° .
0x18 0x09 AL_ End 2 End rotation angle, 0-720 (0x000-0x2D0), unit 0.5° .
Value Memory Size.
0x00: *VP points to the VP (integer).
0x1A 0x0A:H VP_ Mode 1
0 x01: *VP points to the High Byte of the VP (VP_H).
0x02: *VP points to the Low Byte of the VP (VP_L).
0x1B 0x0A:L Lib_ID 1 Index in the FLASH memory of the icon library to use.
0x00 : Transparent background.
0x1C 0x0B:H Mode 1
Other Values: Opaque background
When the icon is transparent, the strength of the background color filtering
0x1D 0x0B:L Filter_Set 1
is 0x01-0x3F.
134
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
135
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 05 82 5438 0064
0x5AA5: Frame header;
0x05: Data length; 0x82:
Write instruction;
0x5438 VP;
0x0064 data 100; the icon pointer points to 100 degrees.
5A A5 05 82 5438 00C8
0x5AA5: Frame header;
0x05: Data length; 0x82:
Write instruction;
0x5438 VP; 0x00C8 data 200; the icon pointer points to 200 degrees.
7.7.4 Effect
136
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (bytes)
0x00 0x5A06 2
0x02 *SP 2 Variable description pointer, 0xFFFF means loaded by configuration file.
0x04 2
0x000C
0x0A 0x02 Act_Bit_Set 2 The bit position whose value is 1 indicates that the corresponding position of *
VP needs to be displayed.
0x0C 0x03:H Display_mode 1 Define the display mode:
Mode Bit value
0 1
0x00 ICON0S ICON1S
0x01 ICON0S None
0x02 ICON0S Animation: ICON1S-ICON1E
0x03 None ICON1S
0x04 None Animation: ICON1S-ICON1E
0x05 Animation: ICON0S-ICON0E ICON1S
0x06 Animation: ICON0S-ICON0E None
0x07 Animation: ICON0S-ICON0E Animation: ICON1S-ICON1E
Bitmap icon arrangement:
0x0D 0x03:L Move_Mode 1
0 x00= x++, the non-display bit specified by Act_ Bit_ Set is not reserved; 0 x01
= Y++, the non-display bit specified by Act_Bit_Set does not retain the position
0 x02 = x++, the non- display bit specified by Act_ Bit_ Set is reserved for DIS_
MOV position
0x03 =Y++, the non- display bit specified by Act_Bit_Set is reserved for DIS_
MOV position
0x16 0x08 ICON1E 2 Display animation mode, bit_1 icon animation end ID position
137
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x18 0x09 4 The starting position variable display position, the coordinate position of the upper
(x, y) left corner of the icon.
138
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
139
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 05 82 6000 FFFF
0x5A 0xA5: Frame header;
0x05: Data length;
0x82: Write instruction;
0x6000: VP;
0x FFFF: 11 11 11 11 11 11 11 11 Write 1 to all 16 bits, which is FFFF.
5A A5 05 826000 0000
0x5A 0xA5: Frame header;
0x05: Data length;
0x82: Write instruction;
0x6000: VP;
0x0000: All 16 bits are written with 0.
7.8.4 Effect
140
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.9 Icon Page Tran
Display icons larger than the screen resolution by panning up and down or left and right in the screen viewport. Icon
sliding selection can be realized by this control and sliding icon control.
The background filter strength can be set.
SP Length
Address offset Definition (bytes) Description
0x00 0x5A07 2
Variable description pointer, 0xFFFF means loaded by
0x02 *SP 2
configuration file.
0x04 0x0009 2
Variable pointer, each variable occupies 4 words.
VP=The display starting position of the current display window
on the icon page, (x, y) 2 characters;
0x06 0x00 *VP 2 VP+2=moving distance, 16bit signed number;
Negative numbers move right (down), positive numbers move
left (up);
VP+3 Reserved.
0x08 0x01:H ICON_Lib 1 Icon library ID, 0x00 means use the background icon library.
ICON display mode: 0x00=transparent (do not display icon
0x09 0x01:L Disp_Mode 1
background); others=display background.
When the icon is displayed transparently, the intensity of
0x0A 0x02:H Filter_Set 1
background color filtering is 0x01-0x3F.
Move mode:
0x00=horizontal movement, the X coordinate of the ICON page
can be very large.
Others = vertical movement, the Y coordinate of the ICON
0x0B 0x02:L Move_Mode 1
page can be very large.
The JPEG file size of the ICON icon page cannot exceed the
hardware limit:
252KB for T5L1 and 764KB for T5L2.
0x0C 0x03 ICON_ID 2 Icon (page) ID.
0x0E 0x04 (Xs,Yx,Xe,Ye) 8 On the current page, the icon page displays the area.
0x16 0x08 Reserved 9
141
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.9.2 Software Setting
(2) The maximum size of a long bar icon is 4079*4079, and it is recommended to be within 4000*4000. The larger the area,
the larger the volume. Sliding only supports vertical or horizontal sliding, and does not support 45-degree side sliding. Do the
chart when the height of the long bar icon and the height of the sliding box can be made consistent, a little higher can be, try
not to be too high.
142
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
3) The sliding icon selection touch control does not need to be exactly the same size as the sliding page translation, that is,
the coordinate points do not need to be completely aligned.
(4) Only the touch control is supported on the long bar sliding page, and the display control is not supported, and the button
effect is not supported, because the No. 32 background image does not contain the 1000 long bar icon page.
(5) On the long sliding page, the button value is usually used to return to the menu selection, and the key value can be
uploaded. Combined with variable icons, it is used in such scenarios as menu selection and function selection. You can also
use basic touch to make sliding selection to turn pages, but the number of sliding selection items is unpredictable when you
use it for the first time, which will affect the selection to a certain extent, and you can choose it yourself when you use it.
Set the variable address to 0x5830 and use the Return Key Code Control on the long bar icon.
5A A5 06 83 5830 01 0001; return key value 1
5A A5 06 83 5830 01 0002; return key value 2
5A A5 06 83 5830 01 0003; return key value 3
7.9.5 Effect
143
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Display modes.
0 x00 = JPEG icon transparently displayed ( icon background is not
0x11 0x05:L Disp_ Mode 1 displayed) .
Other = JPEG icon background is displayed. FSK
bus camera display is 0x01 .
The intensity of the background color filtering is 0x01- 0x3 F when the JPEG
0x12 0x06:H Filter_ Set 1 icon is displayed transparently.
. 7 JPEG data storage format setting.
0=sequential (D3: D0=0 xFFD8FFD0), 1= inverse order
(D0:D3=0xFFD8FFE0).
FSK bus camera data is selected in inverse order.
0x13 0x06:L * VP_ Page 1 .6-.4 reserved, write 0.
. 3-.0 variable memory page address, 0x00-0 x0F, which forms a 2 0
bit variable pointer together with * VP, corresponding to
2 MBbytes of variable memory space.
0x14 Reserved 12
144
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
145
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.10.3 Effect
Camera module consists of OV2640 camera + T5L0 driver board + FSK bus.
The supporting camera module finished products have included OV2640 camera and die sinking. FDV200-
1: no infrared.The left camera below is the actual object
FDV200-2: with infrared.
146
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 F3 82 80 00 FF D8 FF E0 00 10 4A 46 49 96 00 01 01 01 00 60 00 60 00 00 FF DB 00 43 00 08 06 06 07 06
05 08 07 07 07 09 09 08 0A 0C 14 0D 0C 0B 0B 0C 19 12 13 0F 14 1D 1A 1F 1E 1D 1A 1C 1C 20 24 2E 27 20 22
2C 23 1C 1C 28 37 29 2C 30 31 34 34 34 1F 27 39 3D 38 32 3C 2E 33 34 32 FF DB 00 43 01 09 09 09 0C 0B 0C 18
0D 0D 18 32 21 1C 21 32 32 32 32 .......
( The DGUSII screen will have a response " 5 A A5 0 3 8 2 4 F 4 B" , and the next one can be sent immediately after
receiving the response. In fact, the T5 L uses a 20 ms refresh rate mechanism . In the case of using a baud rate of ≤
115200 , sending data continuously will not cause serial port busy processing)
Example2 : The address is incremented in sequence according to the word length of 120 (78 h).
5A A5 F3 82 80 78......
Send several packets of data in turn...
The last line less than 240 bytes can be complemented with "00 00" at the end
The figure below is the specific data of the JPEG image viewed with " UltraEdit-32 " software.
5A A5 07 82 7F FE 5A A5 80 00
In fact, " 0x8000 " refers to the length of the buffer, JPEG data stream ( 0xFFD8 . . . 0xFFD9 ) file format, the bottom
layer will judge and process automatically. User does not need to worry about the redundant data in the cache
address later.
7.10.3 Effect
147
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x0F 0x04:L Icon_ Lib 1 Number of data items corresponding to VP, 0x0000-0x1000, up to 4096 data
items.
0 x00: current page.
0x10 0x05 Icon_ID 2
Others: icon background image.
0x12 0x06 Reserved 14 Index in the FLASH memory of the icon library to use. Only works in
icon background image mode.
148
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Estimated processing time in icon background image mode (Copy the specified area from the icon patch background image
saved in Flash and display it to the current page):
T = (number of valid data items + 5) * image background image pixels/400+ icon pixels corresponding to valid data
items/200 uS.
Example:
Assuming that each data has 8 different icons to choose from. A single icon is 64 * 6 4 pixels, spliced into a 560 * 6 4
background image, and there are 100 data items to be displayed. Then the processing time is 105*560*64/400+100
*64*64/200 = 11.456 mS, In the video memory mode, it is 5.12 mS.
Estimated processing time in video memory mode ( copy the specified area from the currently displayed page to the
current page):
Example:
Assuming that each data has 8 different icons to choose from, a single icon is 32 * 32 pixels, has been displayed on the
current page, and there are 1000 data items to be displayed, then the processing time is 1000*32*32/80= 12.80 Ms .
In the icon back ground image mode, it is 30.848 mS.
In the video memory mode, the speed is fast, and it needs to occupy a certain area of the display area to display the
icons to be copied, and restore the background after use.
In the icon background image mode, it is suitable when there are not too many data items and the resolution of the
icon background image is not high.
149
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (Word)
0x00 0x5A10
0x02 *SP Variable description pointer. 0xFFFF means loaded by the configuration file.
0x04 0x000D
The starting display position, which displays the coordinates of the upper left
0x08
0x01 X, Y 4 corner of the string.
to 9223372036854775807
150
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.12.2 Software settings
151
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
152
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 05 82 9003 F800
153
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
154
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (Word)
0x00 0x5A11
0x02 *SP
Variable description pointer. 0xFFFF means loaded by the configuration file.
0x04 0x000D
0x09:H Color 2 The font location used by ASIC characters when the encoding method is 0x01-0x04.
0x18
Font location for non-ASCII characters when the encoding is 0x00 , 0x05 , and 0x01 -
0x19 0x09:L (Xs, Ys)(Xe, Ye) 8
0x04.
The number of dots in the x direction of the font (0x01- 0x04 mode, the number of
0x1A 0x0A:H Text_ Length 2
dots in the x direction of ASCII characters is calculated as x/2 ) .
0x1B 0x0A:L Font0_ID 1 The number of dots in the Y direction of the font.
Character spacing mode is defined by bit
155
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
156
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 05 82 5023 0D0A
0x5AA5: Frame header;
0x05: Data length;
0x82: Write instruction;
0x5023 start from the address and display in a new line;
The ASCII code of 0 x0 D0 A line feed can be converted by an ASCII conversion tool.
157
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
⑤Hide text
Method 1: Hide
5A A5 05 82 8800 FF00
0x5AA5: Frame header;
0x05: Data length;
0x82: Write instruction;
0x8800: SP;
0xFF00: Hidden text.
158
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.13.4 Effect
159
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(1) Display current date and/or time, in digital format by the internal RTC.
SP Length
Definition Description
offset (bytes)
0x04:H Lib_ID 1 Index in the FLASH memory of the ASCII font library.
0x05 String_ Code E. g. If current time =2012-05-02 12:00:00 Wednesday, then in Y-M-D H: Q: S 0x00
160
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
161
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (Word)
0x00 0x5A12
0x02 *SP Variable description pointer. 0xFFFF means loaded by the configuration file.
0x04 0x000D
0x0C 0x03 Icon_ Hour 2 ID of pointer ICON, 0xFFFF indicates that the hour hand is not displayed.
0x0E 0x04 Icon_ Hour_ 4 Position of the center of rotation of the clockwise icon.
Central
0x12 0x06 Icon_ minute 2 ID of the minute hand ICON. 0xFFFF indicates that the minute hand is not displayed
0x14 0x07 Icon_ Minute_ 4 Rotation center position of minute hand ICON.
Central
0x18 The ID of the second hand icon;
0x09 Icon_ Second 2 0xFFFF indicates that the second hand is not displayed.
0x1A 0x0A Icon_ Second_ 4 Position of rotation center of second hand ICON.
Central
0x1E 0x0C:H Icon_Lib 1 ID of the icon library file where the pointer icon resides
162
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.14.4.3 Example of Instruction
Display time October 1, 2050 11: 12: 13
5A A5 0B 82 009C 5A A5 32 0A 01 0B 0C0D
0 x5AA5: Frame header;
0x0B Data length;
0x82: Write instruction;
0 x0 0 9 C: VP; this address is fixed and cannot be customized. For details, please refer tothesection7 . 0 x9 C address definition;
0 x5 AA5 : Start RTC setting once. For details, please refer tothe section7 .1 0 x9 C address definition
0x32 year, 0x0A month, 0x01 day, 0x0B hour, 0x0C minute, 0x0D second.
7.14.4.4 Effect
163
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (Word)
0x00 0x5A13 2
0x02 *SP 2 Variable description pointer. 0xFFFF means loaded by the configuration file.
0x04 0x000D 2
Display the starting position, and display the coordinates of the upper left corner of the
0x08 0x01 X,Y 4 string.
0x0C 0x03 Color 2 Font color.
.7: Data BCD code adjustment enable, 0=adjustment off, 1=adjustment on.
When the BCD code adjustment is enabled, 0x0A will be adjusted to 0x10 and
Mode displayed as 10.
0x0E 0x04:H 1
.6-.4: Reserved, write 0.
.3-.0: The number of bytes displayed from the high byte of *VP pointer, 0x01-0x0F
The encoding string is used to combine with the time variable to produce the display
format required by the client.
After each BCD time code is displayed, an ASCII character will be taken out in
sequence from the encoded string
characters to display at intervals.
0x11 0x05:L String_Code MAX15
In encoded strings, special characters are defined as follows:
0x00: invalid, this character will not be displayed, and the two BCD time codes will be
displayed together;
0x0D: Newline display, that is, X=Xs, Y=Y+Font_X*2
164
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.15.2 Software Setting
7.15.4 Effect
165
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Definition Description
offset (bytes)
0x5A14 2 Fixed value 0x5A14 .
SP 2 The variable describes the pointer.
The font location of non- ASCII characters when the encoding mode is 0 x01 -
0x04.
Font1_ID When the encoding mode is 0x00 or 0x05 , the location of the character library
0x08:L 1
used by the character is displayed.
166
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
167
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.16.4 Effect
168
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (Word)
2
0x00 0x5A15
2
0x02 *SP Variable description pointer. 0xFFFF means loaded by the configuration file.
2
0x04 0x000D
2
Data pointer, each data occupies 2 words storage space, defined as follows:
0x06 0x00 *VP VP=the storage address of the selected data, and the stored data is a fixed-
point integer.
*(VP+1) Reserved, do not use.
0x08 0x01 V_Min 2 Data lower limit, fixed-point integer.
Data window height: the number of all data groups displayed, must be an odd
0x0E 0x04:H NUM_Digit 1
number, 0x03-0x07.
1 Display mode:
.0 1=Invalid 0 is displayed; 0=Invalid 0 is not displayed.
.1 1=Positive "+" display; 0=Positive "+" not displayed.
.2 1=Turn around after the data crosses the border (cycle) 0=Stop when the
0x0F 0x04:L Display_mode
data crosses the border
.3 1=automatic adjustment of display spacing 0=no adjustment of display
spacing
.4-.7 Undefined, write 0.
0x10 0x05 (X,Y) 4 Displays the center coordinates of the selected value.
1 Font size of unselected data: the number of dots in the X direction, 0x04-
0x16 0x08:H Font0_X_Dots 0x40.
1
The number of lattice points occupied by the Y direction of the unselected
0x17 Font0_Y_Dots data.
0x08:L
0x08-0xFF, not less than 2*Font0_X_Dots.
1 The font size of the selected data: the number of dots in the X direction,
0x1A 0x0A:H Font1_X_Dots
0x04-0x40.
1 The number of lattice points occupied by the Y direction of the selected data.
0x1B 0x0A:L Font1_Y_Dots
0x08-0xff, not less than 2*Font1_X_Dots.
169
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
170
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.17.4 Effect
171
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
offset (Word)
0x00 0x5A16 2
*SP 2
0x02 Variable description pointer. 0xFFFF means loaded by the configuration file.
0x000D 2
0x04
*VP 2
0x06 0x00 Text pointer, the maximum text length is 4Kbytes.
Text display position: left- aligned mode, the coordinates of the upper left corner of the
0x08 (X, Y) 4
0x01 string.
Font location for non- ASCII characters when the encoding is 0 x00 , 0 x05 , and 0 x01 -
0x1A 2
0x0A LIB_ID 0x04.
. 7 defines whether the character spacing of the text display is automatically adjusted.
. 7 = 0 Character spacing is automatically adjusted.
. 7 = 1 Character spacing is not automatically adjusted, character width is fixed.
0x1C 0x0B:H 1 . 6 - .0 defines the scale of the character display, 0x00-0x7F, unit 1/ 16.
Display_ Mode
In fact, DGUS divide 155 steps according to 0.25-8.0 in 0.05 steps, and then
converted to 1/ 16 data.
The data is converted to 1/ 16 corresponding to 0x04-0x7F.
172
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
173
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.18.4 Effect
174
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(4) When using a large font size such as 24*24 dot matrix (12 MB) or more, you need choose/customize products with
expanded Flash(> 16 MB).
If users want to generate a gray word library, please follow the steps below.
(1) Open DGUS and click Gray Word Library Generator.
175
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(3) Select the saving path, name it accordingly and click save.
176
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Data length
Address Definition Description
Offset (byte)
0x00 0x5A17 2 Variable pointer, the variable is a double word, the low word is reserved,
and the high word is integer data -32768 to +32767.
Lower limited.
0x02 SP 2
0x04 0x000D 2 Upper limited.
Data pointer. Each data occupies four words of storage space,
defined as follows: VP= storage address of the selected data,
0x06 0x00 VP 2 VP+ 1 = adjustment parameter, corresponding to gesture adjustment
VP+ 1 or incremental adjustment VP. VP+ 2 = System reserved,
display offset, integer
The high 4 bit is the data type:
0x0=Integer (2 bytes), -32768 to 32767
0 x1=* VP high byte, unsigned number 0-255
0 x2=* VP low byte, unsigned number 0-255
0xE=* VP The data directly corresponds to the font ID 0 - 255 , which
Adj_ Mod 1
is suitable for small screen input keyboard.
0x08 0x01:H 0xF=* VP data is an ASCII string pointer, and each line can contain
up to 2 5 6 characters. The low 4 bit is ( number of character lines-
1)/2,0x0-0x4, up to 9 lines.
Data mode:
The upper 4bit is the number of integers, 0x00-0 x05. The lower 4bit
is the number of decimal places, 0x00-0 x05.
0x09 0x01:L Data_ Mod 1
String mode: character pointer interval ( word length), 0 x01 - 0xFF.
Data mode: interval step length of data variable, 0 x00 0 1 - 0 x7FFF.
String pattern:
0x0A 0x02 VP_ String 2 The string variable storage pointer corresponding to the starting
value (0 x00), 0xFF represents the end of data.
0x0C 0x03 V Min 2 The lower limit of the data, fixed- point integer.
0x0E 0x04 V_ Max 2 The lower limit of the data, fixed- point integer.
Display mode:
.7 1= invalid 0 displayed; 0= invalid 0 not displayed.
. 6-.4 1=The selected line displays the Font0; 0x0-0x7.
.3 1=The positive "+" is displayed; 0=The positive "+" is
not . displayed.
.2 1= Character background is not filtered out; 0=Character
0x10 0x05:H Display_ Mode 1
background is filtered out.
. 1-.0 Alignment mode: 00=center, 01=left alignment, 02=right
alignment.
0x12 0x06 Font_ID 2 Select the configuration icon font number, 0 x0000 - 0xFFFF.
Show the display coordinates of the selected row. Center mode:
the center coordinates of the selected line; left alignment mode: the
left midpoint coordinates of the first character of the selected line;
0x14 0x07 (X, Y) 4 right alignment mode: the right midpoint coordinates of the last
character of the selected line.
177
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Line spacing 0 ( the spacing between the selected line and the top 1
line; the spacing between the selected line and the bottom 1 line is
0x18 0x09:H Line_ Height0 1 also this value, treated symmetrically; the same below.) Height
( pixels in the Y direction).
Line space 1 ( the space between the top 1 line and the top 2 lines)
0x19 0x09:L Line_ Height1 1 height ( pixels in the Y direction).
Line space 1 ( the space between the top 2 lines and the top 3
0x1A 0x0A:H Line_ Height2 1 lines) height ( pixels in the Y direction).
Line space 1 ( the space between the top 3 lines and the top 4
0x1B 0x0A:L Line_ Height3 1 lines) height ( pixels in the Y direction).
The window brightness is not selected, 0x00-0xFF. 0x00 is the
0x1C 0x0B:H DIM_ No_ Select 1 darkest, 0xFF is the brightest; combined with the background.
The height of the display area of the selected line must be higher
0x1D 0x0B:L Height_ Sel 1 than the character height of Font0 .
178
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
179
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.19.4 Effect
180
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP Length
Address Definition Description
Offset (byte)
0x00 0x5A18 2
0x04 0x000B 2
Text pointer, must be an even address.
The maximum size of text variable data is 255 bytes.
0x06 0x00:H *VP 1 0xFFFF, 0x0000 data or display to the end of the text box will no
longer be displayed.
Font_ ID Use the font code ID in the GTF font library, 0x0000-0 x03 FB.
0x0A 0x01 8
Start display position.
Left alignment mode: the coordinates of the upper left corner displayed
on the first line;
0x0C 0x05 (X, Y) 2 Right-aligned mode: the coordinates of the upper right corner
displayed in the first line;
Centering mode: undefined, any value can be used.
(Xs, Ys) The coordinates of the upper left and lower right corners of the text
0x10 0x06 8
(Xe ,Ye) box.
181
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
182
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(2) Setting
①Click the "+" in the lower left corner to add a picture;
② Use the " rectangle" control to define key values;
③ Box-select the character icon area;
④Double- click the control to define the key value;
Key value range 0x01-0xFF;
0-9 key value: 0x30-0x39;
A-Z key value: 0x41-0x5A;
Other key values can be used arbitrarily as needed.
⑤Click "x" to save and close;
⑥ Click " Save" to generate the configuration file;
⑦ Click " Generate" to save the GTF icon library file.
(3) Precautions
It is recommended that the GTF icon should not exceed 1920*1080, and the icon will not be displayed if it is too
large;
If the original image of GTF does not display the bmp and jpg images output by the bitmap software, you can use
the bmp and jpg images of the vector graphics software;
The FTG icon name ID is 0-63, and a single GTF icon occupies the Flash space with a subspace size of 256 KB.
183
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Tx: 5A A5 04 82 1000 30
②Display character 12
④ Display character A
Tx: 5A A5 04 82 1000 41
⑤ Display characters ABCD, remove redundant characters and add terminator FFFF
Tx: 5A A5 09 82 1000 4142 4344 FFFF
⑦ Display icon
184
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.20.5 Effect
185
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The real- time curves control is to automatically match and display the real- time curve ( trend graph) by writing the
curve buffer data with the 0 x84 instruction.
The display area, the coordinates of the central axis and the display scale ( enlargement/ reduction) can be set by
users.
SP Length
Definition Description
offset (bytes)
0x00 = The latest data is on the far right, and the curve moves from right to left.
0x00:H 0x5A20 1
Other = The latest data is on the far left, the curve moves from left to right.
0x00:L SP 1 Undefined
The coordinates of the upper left corner of the curve window ( Xs, Ys) and the
0x01 Xs, Ys Xe, Ye 8 coordinates of the lower right corner ( Xe, Ye)
Curve out of bounds will not be displayed.
The curve data value corresponding to the central axis generally takes half of the
0x06 VD_ Central 2
sum of the maximum and minimum values of the data.
0x08 MUL_Y 2 The magnification of the vertical axis, the unit is 1/256, 0x0000-0 x7FFF.
0x0A:H Pixel_ Scale 1 Curve pixel lattice size (curve line width), 0x00-0x07 corresponds to 1*1 to 8*8.
186
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Open DGUS, click display control – real- time curves, then set the control display area, and configure the curve color,
data source channel, etc. in the setting menu on the right.
If you need to display a thicker curve line, you can place multiple up and down ( Y- axis) translation curve variables in
the adjacent position and refer to the same data source to achieve this. That is, press Ctrl+ C, Ctrl+ V to copy a set of
curve controls.
Click the copied curve box and press up and down keys of the keyboard The more control you copy, the thicker the
curve line.
[ Note] The configuration and usage examples with touch controls are as follows .
If the content of vp is stored in sp, combined with incremental adjustment control, adjusting the + 0 x0 9 low byte
access address, you can realize automatic scaling of the curve without code .
Also, if combined with drag adjustment control, adjusting + 0 x0 5 to modify the Y_ Central value, the curve can be
moved up and down without code.
187
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
VP Explanation
The storage pointer address of the high byre storage curve data (0 x0000 - 0 x07 FF),
The storage pointer address of the low byre storage curve data (0 x0000 -0x0800 ) .
Write 0x0000 to the effective Data length of the curve buffer will cause the curve not to be
displayed.
Example:
5 A A5 05 82 0301 0000 The curve 0 channel will be cleared, and it will be restored if the value is
rewritten;
5 A A5 05 82 03 0 3 00 0 0 Curve 1 channel will be cleared, and it will be restored if the value is
0x300-0x30F rewritten;
5 A A5 0 5 8 2 03 0 5 0 0 0 0 Curve 2 channel will be cleared, and it will be restored if the value is
rewritten;
5 A A5 0 5 8 2 03 0 7 0 0 0 0 Curve 3 channel will be cleared, and it will be restored if the value is
rewritten;
5 A A5 0 5 8 2 03 0 9 0 0 0 0 Curve 4 channel will be cleared, and it will be restored if the value is
rewritten;
5 A A5 0 5 82 03 0 B 0 0 0 0 Curve 5 channel will be cleared, and it will be restored if the value is
rewritten;
5 A A5 0 5 8 2 0 3 0 D 0 0 0 0 Curve 6 channel will be cleared, and it will be restored if the value is
rewritten;
5 A A5 0 5 8 2 03 0 F 0 0 0 0 Curve 7 channel will be cleared, and it will be restored if the value is
rewritten;
188
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
189
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
⑤ Channels 0x06 and 0x07 display two cross curves and display from right to left
Instruction 1: 5A A5 13 82 0310 5AA5 0200 0602 0000 03E8 0702 03E8 0000
Instruction 1 is to form a cross curve, where the maximum and minimum values of the two curves are set opposite,
so that the middle of the curves can be crossed.
The cross curve is actually two different channel curves, so you need to make two curve controls and set different
channels.
Instruction 2: 5A A5 13 82 0310 5AA5 0200 0602 0064 01F4 0702 01F4 0064
On the right- to- left setting screen of the software, it is displayed from left to right at first. When the curve box is filled,
write instruction 2, and then you can see that the curve is displayed from right to left.
5A A5 37 82 0310 5AA5 0800 0002 0000 03E8 0102 0000 03E8 0202 0000 03E8 0302 0000 03E8 0402 0000
03E8 0502 0000 03E8 0602 0000 03E8 0702 0000 03E8
0 x00 - 0 x07 Channels Each channel can be refreshed separately in turn to achieve the effect of refreshing different
channel curves at the same time.
T5L DGUS curve 8- channel display, a total of 8 channels, each channel can store 2048 words .
After enabling dynamic curve display, starting from 0 x 1000 , a data buffer is established for each curve according to
2 Kwords per channel.
The SP storage address format of this function and some examples of commonly used access instructions are as
below.
190
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Change the position of the center axis of the curve (the curve moves up
0x05 5A A5 05 82 8005 0064 and down): move it up and down to the y axis100 position.
Change the range of the curve ( vertical scaling of the curve): the
curve data value corresponding to the central axis, generally half of
the sum of the maximum and minimum data. For example, here the
0x06 5A A5 05 82 8006 0064
instruction is changed to 0 x2 0 0 range, ( corresponding magnification
needs to be modified in the 0 x08 pointer address)
0x07 5A A5 05 82 8007 F800 The color of the curve display changes to red
191
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Set the VP address 0x8000, + 0x0000 attribute address low byte. 7 bits write 1 to open the display data point,
write 0 to connect the data point,
Convert binary 1000 0000 into hexadecimal 0x80, the command example is as follows:
3 colors: After the DGUS software enables multiple color display functions and specifies the color address,
write the color value (red: 0xF800, yellow: FFE0, blue: 0x001F) to the color variable address.
192
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
hexadecimal is F, that is, there are a total of 16 kinds of combinations ID (0-15), corresponding to 16 kinds of
colour can be set; when using a certain ID, the program will call its corresponding colour, this colour value is
the value written to the 0x9000 address above; low 12bit represents the curve data, 0x9000 address, this
colour value is the value written to the upper. There are 16 kinds of ID (0-15), which can be set to 16 kinds of
colors; when using a certain ID, the program will call its corresponding colour, and this colour value is the
value written to the 0x9000 address from above; the low 12bit indicates the curve data, 0x010 is data 16,
0x3E8 is data 1000.
③ Different IDs of other data indexes call different colors
5A A5 06 84 01 1010 13E8;
The high 4bit of the curve data is the color index ID; the low 12bit represents the curve data, 0x010 is data
16, 0x3E8 is data 1000
5A A5 06 84 01 2010 23E8;
The high 4bit of the curve data is the color index ID; the low 12bit represents the curve data, 0x010 is
data 16, 0x3E8 is data 1000
16 colors: After the DGUS software enables multiple color display functions and specifies the color address,
write the color value to the color variable address
ID0: Red: 0xF800
ID1: Blue: 0x001F
ID2: Green: 0x07E0
ID3: Orange: 0xFC00
ID4: Purple: 0x801F
ID5: Turquoise: 0x07FF
ID 6: Brown: 0x4000
ID7: Pink: 0xFC1F
ID8: Dark green: 0x0208
ID9: Yellow-green: 0x8400
ID10: Rose red: 0xF810
193
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
ID11: Deep Purple: 0x4010
ID12: Sky blue: 0x041F
ID13: Neutral gray: 0x8410
ID14: Black: 0x0000
ID15: Dark blue: 0x0010
Define color position: 5A A5 23 82 9000 F800 001F 07E0 FC00 801F 07FF 4000 FC1F 0208 8400 F810
4010 041F 8410 0000 0010
194
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.21.4 Effect
195
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
SP
Address Definition Length ( byte) Description
Offset
0x00 0x5A21
0x02 *SP
0x04 0x0008
The coordinates of the upper left corner and the lower right corner of
the drawing display area; if the drawing exceeds the boundary, it will
0x08 Area 8
0x01 not be displayed. only for 0x0001-0x0005, 0x0009, 0x000A,
The description of the variable data format pointed to by the variable data pointer ( variable storage space) is
shown in the table.
196
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
The coordinate of the line vertex n, and the high byte of the x
0x01+2*n 2 (x, y)n coordinate are the judgment conditions.
The coordinates of the upper left corner of the rectangle and the
0x00 2 (x, y)s high byte of the x coordinate are the judgment conditions.
0x0003 Rectangular
0x02 2 (x, y)e The coordinates of the bottom right corner of the rectangle.
The ID of the page where the cut image area is located; the high
0x00 1 Pic_ID
byte is the judgment condition
Picture
0x0006 Copy& Paste 0x01 (x, y)s The coordinates of the upper left corner of the image cutting area.
2
0x03 2 (x, y)e The coordinates of the lower right corner of the image cutting area.
(x, y) The coordinates of the upper left corner of the area in the current
0x05 2
page that it is cut and pasted to.
The coordinate position of display area, and the high byte of the x
0x00 2 (x, y)
coordinate is the judgment condition.
0x**07 Icon Display Icon ID, the location of the icon library is specified by the high byte
0x02
1 ICON_ ID of instruction.
The icon is fixed to not display the background color.
Frequency Connect (x0, Y0s) (x0, Y0e) with Color0 color, and the high byte
0x00 1 Color0
Spectrum of x0 is the judgment condition.
0x0009
( Vertical X0,Y0s,Y0
0x01 3
line) e
197
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x00 1 color
Line segment Connect ( Xs, Ys) ( Xe, Ye) with Color, and the high byte of Xs is the
0x000A 0x00 1 color
display judgment condition.
0x00 1 color
The coordinates of the upper left corner of the rectangular area,
0x00 2 (x, y)s
and the high byte of the x coordinate are the judgment conditions.
0x000D xOR 0x02 2 (x, y)e The coordinates of the lower right corner of the rectangular field.
The bitmap displays the coordinates of the upper left corner of the
0x00 2 (x, y)s
rectangle, and the high byte of the x- coordinate is the judgment condition.
Two- color 0x04 1 Color1 " 1 " bit corresponding display color
0x000E
bitmap display
The display color corresponding to "0 " bit; if you set Color0 and Color1 to
0x05 1 Color0 be the same,
Indicates that "0 " bit does not need to be displayed, just skip it.
Display data, MSB mode; in order to facilitate users to read and write
Date_ Pa
0x06 N data, each line of data must be aligned to a word, that is, the next line of
ck
data always starts from a new data word ( Word).
The coordinates of the center of the ellipse, and the high byte of the x
0x00 2 (x, y)
coordinate is the judgment condition.
The upper left coordinates of the displayed bitmap, and the high byte of
0x00 2 ( x, y) s the x- coordinate is the judgment condition.
The starting VP address must be even ( double- word aligned) .
0x02 1 X_ Dots The number of bitmap X- direction pixels, which must be divisible by 16 .
The value 0xFF indicates that the drawing operation is over, and 0xFE indicates that the operation is skipped
(ignored).
198
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
199
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
200
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
201
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 1F 82 5440 0002 0004 F800 00FC 0168 015E 0168 015E 0136 0190 0136 0190 0168 FF00
5A A5 23 82 5440 0002 0005 F800 00FC 0168 015E 0168 015E 0136 0190 0136 0190 0168 01C2 0168 FF00
202
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
203
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x5440: VP;
0x0002: Draw a line segment;
0 x0007: The number of
connections; 0xF800: Color value;
0x00FC 0168: (252,360)coordinates;
0x015E 0168: (350,360)coordinates;
0x015E 0136: (350,310)coordinates;
0x0190 0136: (400,310)coordinates;
0x0190 0168: (400,360)coordinates;
0x01C2 0168: (450 360)coordinates;
0x01C2 0136: (450,310)coordinates;
0x01F4 0136:
(500,310)coordinates; 0xFF00:
End of drawing operation.
5A A5 2F 82 5440 0002 0008 F800 00FC 0168 015E 0168 015E 0136 0190 0136 0190 0168 01C2 0168 01C2
0136 01F4
204
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 33 82 5440 0002 0009 F800 00FC 0168 015E 0168 015E 0136 0190 0136 0190 0168 01C2 0168 01C2 0136
01F4 0168 0226 0168 FF00
0 x5AA5: Frame header;
0x33 Data length;
0x82: Write instruction;
0x5440: VP;
0x0002: Draw line segment;
0x0009: The number of connections;
0xF800: Color value;
0x00FC 0168: (252,360)coordinates;
0x015E 0168: (350,360)coordinates;
0x015E 0136: (350,310)coordinates;
0x0190 0136: (400,310)coordinates;
0x0190 0168: (400,360)coordinates;
0x01C2 0168: (450 360)coordinates;
0x01C2 0136: (450,310)coordinates;
0x01F4 0136: (500,310)coordinates;
0x01F4 0168: (500,360)coordinates;
0x0226 0168: (550,360)coordinates;
0xFF00: End of drawing operation.
205
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.22.6 Rectangle
Show a rectangle
206
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x5440: VP;
0x0003: Draw rectangle;
0x0003: Draw three rectangles;
0x011E 012C: (286, 300) upper left coordinate;
0x01AA 018C: (426,96) lower right coordinate;
0xF800: Color;
0x01AB 018D: (426,96) upper left coordinate;
0x01E6 01E6: (486,486) upper right coordinate;
0xF800: Color;
0x01E6 01E6: (486,486) upper left coordinate;
0x0162 022C: (354,556) lower right coordinate;
0xF800: Color;
FF00: The drawing operation ends.
207
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0xF800: Color;
0x01AB 018D (427,97) upper left coordinate;
0x01E6 01E6 (486,486) lower right coordinate;
0xF800: Color;
0xFF00: The drawing operation ends.
5A A5 27 82 5440 0004 0003 011E 012C 01AA 018C F800 01AB 018D 01E6 01E6 F800 01E6 01E6 0221 022C
F800 FF00
0x5AA5: Frame header;
0x27: Data length;
0x82: Write instruction;
0x5440: VP;
0x0004: Fill rectangle;
0x0003: Fill three rectangles;
0x011E 012C (286,00) upper left coordinate;
0x01AA 018C (426,396) lower right coordinate;
0xF800: Color;
0x01AB 018D (427,97) upper left coordinate;
0x01E6 01E6 (486,486) lower right coordinate,
0xF800: Color;
0x01E6 01E6 (486,486) upper left coordinate;
0x0221 022C (545,556) lower right coordinate;
0xF800: Color;
0xFF00: The drawing operation has ended.
When filling, the coordinates of the lower right corner are larger than the coordinates of the upper left corner.
208
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 17 82 5440 0006 0001 0000 0021 002700A3 0040 0168 0168 FF00
0x5AA5: Frame header;
0x17: Data length;
0x82: Write instruction;
0x5440: VP;
0x0006: Image copy and paste;
0x0001: Cut a region;
0x0021 0027 (33, 39): Top left coordinates of page 0,
0x00A3 0040 ( 163,64): Bottom right coordinates of page 0;
0x0168 0168 (360,360): Paste to the current page coordinates;
0xFF00 Drawing operation ended.
209
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
210
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 19 82 5440 0009 0002 F800 0168 0168 0190 F800 0190 0168 01C2 FF00
0x5AA5: Frame header;
0x11: Data length;
0x82: Write instruction;
0x5440: VP;
0x0009: Spectrum display;
0x0002: Shows two spectrums;
0xF800: Color;
0x0168 (360): x0 coordinates,
0x0168 (360): Y0s start coordinates;
0x0190 (400): Y0e end coordinates;
0xF800: Color;
211
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 31 82 5440 0009 0005 F800 0168 0168 0190 F800 0190 0168 01C2 F800 01C2 0168 01F4 F800 01F4 0168
020D
F800 0226 0168 0226 FF00
0x5AA5: Frame header;
0x11: Data length;
0x82: Write instruction;
0x5440: VP;
0x0009: Spectrum display;
0 x0005: Displays five spectrums;
0xF800: Color;
212
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
213
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
214
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Step 2: Based on the 0x5540 address, fill the circular enclosed area with the center of the circle as the seed point:
5A A5 0F 82 5540 0008 0001 0168 0168 F800 FF00
0x5AA5: Frame header;
0x0F:Data length;
0x82: Write instruction;
0x5440: VP;
0x0008 Fill instruction;
0x0001 Fill the enclosed area;
0x0168, 0x0168 The coordinates of the seed point of the circular enclosed area (360,360);
0xF800 Red;
0xFF00 Terminator.
215
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Rectangular field XOR, highlight and inverse color display three times
5A A5 27 82 5440 000D 0003 0168 0168 0190 0190 F800 0190 0190 01C2 01C2 F800 01C2 01C2 01F4 01F4
F800 FF00
0x5AA5: Frame header;
0x1D: Data length;
0x82: Write instruction;
0x9010: VP;
0x000D: Rectangle XOR;
0x0003: Rectangular field XOR three times;
216
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
217
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(2) Explanation
( 1) X, Y: the bitmap displays the coordinates of the upper left corner of the rectangular field. The height of the X
coordinate is the judgment condition, and the starting position of the character area is displayed.
218
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Tx: 5A A5 35 82 5440 000E 0001 0168 0168 000F 000F F800 07E0 0000 0000 0000 3C00 4200 4200 4200 2400
1800 2400
4200 4200 4200 3C00 0000 0000 FF00
0x5AA5: Frame header;
0x35: Data length 53 bytes.
0x82: Write instruction;
0x5440: VP;
0x000 E:Two- color bitmap instruction;
0x0001: Write a character;
0x0168, 0x0168: The upper left coordinates of the character;
0x000F, 0x000F:The number of dots in the character display area;
0xF800: Color1 character color;
0x07E0: Color0 character background color;
0x0000 0000 0000 3C00 4200 4200 2400 1800 2400 4200 4200 4200 4200 4200 4200 3C00 0000 0000:
0xFF00: End character.
② Display character graphic " C" within the range of 15 * 15 dot matrix
Tx: 5A A5 35 82 5440 000E 0001 0168 0168 000F 000F F800 07E0 6000 91F4 960C 6C04 0804 1800 1800 1800
1800 1800 1800 1800 1800 1800 1800 0800 0C04 0608 01F0 0000 FF00
219
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x02 1 X_ Dots The number of bitmap X- direction pixels, which must be divisible by 16 .
Four- color
0x04 1 Color0 The display color corresponding to the "00" bit.
0x0012
bitmap 0x05 1 Color1 The display color corresponding to the "01" bit.
0x06 1 Color2 The display color corresponding to the "10" bit.
0x07 1 Color3 The display color corresponding to the "11" bit.
Display data in MSB.
Data_ Pa
0x08 N Each line of data must be aligned to a double word ( 16 pixels) for users
ck
to read and write the data.
220
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x07 E0: green, color 2; set the display color corresponding to "10" bit.
0x0000: black, color 3; set the display color corresponding to the "11" bit.
0x0000 0000: line 1 double word data.
0x0000 0000: line 2 double-word data.
0x0000 0000: line 3 double-word data.
0x0000 0000: line 4 double-word data.
0x00FF AA00: line 5 double-word data.
0x00FF AA00: line 6 double-word data.
0x00FF AA00: line 7 double-word data.
0x00FF AA00: line 8 double-word data.
0x0055 FF00: line 9 double-word data.
0x0055 FF00: line 10 double-word data .
0 x0055 FF00: line 11 double-word data.
0 x0055 FF00: line 12 double-word data.
0x0000 0000: line 13 double-word data.
0x0000 0000: line 14 double-word data.
0x0000 0000: line 15 double-word data.
0x0000 0000: line 16 double-word data.
0xFF00: terminator.
221
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Each pixel point is represented by 2 bits of a color, 00/11 combined into a total of 4 numbers 00, 01, 10, 11, which
can correspond to 4 colors respectively, and then convert the 32 bit data of the double word into hexadecimal data,
which is the data to be sent.
222
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
(4) Effect
223
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
224
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x5A23 2
0x000D 2
0x01 (Xs, Ys) 4 The coordinates of the upper left corner of the process bar display area.
0x03 (Xe, Ye) 4 The coordinates of the lower right corner of the process bar display area.
1 .7 Return the percentage data of the progress bar to the specified variable control, 0=do not
return, 1=return.
0x0A_H 0x00: Display the outer border and fill the background.
Mode
0x01: Do not display the outer border, fill the background.
0x03: Do not display the outer border, do not fill the background.
0x0B_H Type of data 0x00=integer 0x01=variable high byte 0x02=variable low byte
2 The calculated progress bar percentage (unit 1%) returns the pointer address, and the returned
0x0C *VP_RT
data is an integer, 0x0000-0x0064.
225
7.23.2 Software Setting
②For example, if the data range is -32768 to 32767, the percentage will be displayed in equal parts according to the
average, and the data variables will be displayed normally.
The data display is -32768, the percentage display is 0%: 5A A5 05 82 6000 8000 (the complement of the negative
number sent by the data)
Data display 0, percentage display 50%: 5A A5 05 82 6000 0000
The data shows 327, the percentage shows 50%: 5A A5 05 82 6000 0147
The data shows 328, and the percentage shows 51%: 5A A5 05 82 6000 0148
Display data 982, percentage display 51%: 5A A5 05 82 6000 03D6
Display data 983, percentage display 52%: 5A A5 05 82 6000 03D7
The data shows 32767, and the percentage shows 100%: 5A A5 05 82 6000 7FFF
③For example, if the data shows -100 to 100, the percentage will be displayed in equal parts according to the
average, and the data variables will be displayed normally.
226
Display data -100, percentage display 0%: 5A A5 05 82 6030 FF9C (0x FF9C negative number 100. Complement code of
negative number: the sign bit is 1, and the remaining bits are the original code of the absolute value of the number; then
the whole number Add 1. If you enter -200, it will return 5A A5 06 83 68 20 01 FF 38, and the returned data 0xFF38 is the
entered data -200.)
Display data 0, percentage display 50%: 5A A5 05 82 6030 0000
Display data 1, percentage display 51%: 5A A5 05 82 6030 0001
Display data 2, percentage display 51%: 5A A5 05 82 6030 0002
Display data 3, percentage display 52%: 5A A5 05 82 6030 0003
7.23.4 Effect
0x00 VP 2 A word variable to hold the panning data. Not available to the user.
0x01 (x, y) s 4 The coordinates of the upper left corner of the moving area.
0x02 (x, y) e 2 The coordinates of the upper right corner of the moving area.
0x06_H Mode_ Move 2 Shift left 0x01= Shift right 0x02= Shift up 0x03= Shift down.
227
7.24.2 Software Setting
The variable is occupied by the system and should not be used by the user.
7.25 QR Code
The QR code control is to display the designated QR code on the screen according to the designated content.
Variable pointer.
0x00 VP 2 The content of the QR code is up to 45 8 Bytes, and 0 x0000 or 0xFFFF is the
terminator.
The coordinate position of the upper left corner displayed by the QR code.
0x01 (x, y) 4 There are two types of QR code graphics: 45 * 45 unit pixels ( data less than 155
bytes) and 73*73 unit pixels (data less than 459 Bytes).
0x03 Unit_ Pixels 2 The physical pixel lattice size occupied by each QR code unit pixel, 0 x01- 0 x07 .
Set Unit_ Pixels=4 , then each unit pixel will be displayed as 4* 4 lattice size.
0x05:H Fix_ Mode 1 0 x01: Fixed as 73*73 unit pixel format QR code.
The rest: automatically match the QR code size according to the Data length.
228
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
5A A5 1C 82 5240 68 74 74 70 3A 2F 2F 77 77 77 2E 64 77 69 6E 2E 63 6F 6D 2E 63 6E 2F FFFF
0x5240: VP;
0xFFFF: Terminator.
If the size of the QR code needs to be fixed, You can set SP to 0x8000, offset 5 bits from SP.
Background color change to blue, VP address 0x8000 + 0x05 change background color
5A A5 0582 8005 1800; 0x1800 blue value
Background color change to green, VP address 0x8000 + 0x05 change background color
5A A5 0582 8005 07E0; 0x07E0 green value
Foreground color change to red, VP address 0x8000 + 0x06 change foreground color
229
5A A5 0582 8006 C800; 0xC800 red value
Foreground color change to purple, VP address 0x8000 + 0x06 change foreground color
5A A5 0582 8006 B900; 0xB900 purple value
230
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.26 Brightness
The brightness control is used to adjust the display brightness of the specified display area, and is used to highlight
or fade the background display.
The difference between this control and the backlight adjustment system variable interface is that the backlight is to
adjust the brightness of the whole screen.
0x01 (Xs, Ys) 4 Specifies the coordinates of the upper left corner of the area.
0x03 (Xe, Ye) 4 Specifies the coordinates of the upper right corner of the area.
5A A5 05 82 5432 0032
0x5432 VP;
231
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
0x04 0x000D 2
0x0A 0x06 Predefined data 22 The max length of data preset by the user is 22 bytes.
232
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.28 Video
7.28.1 Instruction Storage Format
SP Data length
Address Definition Description
offset (byte)
0x00 0x5A31 2
0x02 *SP 2 Parameter pointer. 0xFFFF means loaded by the configuration file.
0x04 0x0008 2
Variable data pointer, must be even, occupies 12 bytes.
User control interface, double word, VP and VP+ 1 position are defined
0x06 as follows.
D3 : 0 x5A means digital video playback is on, otherwise it is off.
D2 : Playback status control, DGUS will clear after processing.
0 x01= Stop, the screen stays at the first frame.
0 x02 = Pause/ resume playback.
0 x0 3 = Playback from the specified position ( position is determined by
0x0C 0x03 Wide_ X 2 The width of the video display window on the screen.
0x0E 0x04 Wide_ Y 2 The height of the video display window on the screen.
0x1 1 0x05:L Type_ Video 1 0x00 : Digital video for the combination of ICL files and WAE files.
Other: undefined.
0x12 0x06 File_ ID_ICL 2 ID of the ICL file where the video picture is stored, 0x0000-0xFFFF.
The WAE file ID where the audio is stored, 0x0000- 0xFFFF.
0x07 File_ ID_ WAE 2 The audio is in 32KHz sampled WAV format and is saved in 0x0 0 of
0x14
the file.
233
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
234
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
235
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
D6 :D4: Undefined.
D3 : D2 Total video length, 0x0000-0xFFFF, in seconds.
D1 :D0 Current playing video position, 0x0000 -0xFFFF in seconds.
Set the project display curves using 8 channels, i.e. 0x1000- 0x4FFF address is occupied, here the address is used
arbitrarily from 0x5000, the video duration is 10 S, the instructions are as follows .
( 1) Play
Start playback can be written to the address 0x5A03 , from the beginning of the second or the specified time to start
playback, the instruction examples are as follows .
① Default playback from the 0th second: 5A A5 05 82 5000 5A 03
②Specify playback from the 0th second: 5A A5 05 82 5000 5A 03 0000
③Specify playback from the 3rd second: 5A A5 05 82 5000 5A 03 0003
④Specify playback from the 10th second: 5A A5 05 82 5000 5A 03 000A
(2) Pause/re-play
Whether to send a instruction or touch, the first time is to play, the second time is to pause, and so on: 5A A5 05 82
5000 5A 02
(3) Stop
When stopping, the screen stays at the first frame.
5A A5 05 82 5000 5A 01
236
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
① Playing
Tx send: 5A A5 04 83 5002 01; status is located in the high byte of VP+2 address, read 1 word length data to
determine the high byte.
Rx return: 5A A5 06 83 5002 01 0100; the high byte of VP+2 address is 0x01, which means playing.
②Stop status
Tx send: 5A A5 04 83 5002 01; status is located in VP+2 address high byte, read 1 word length data to judge high
byte.
Rx return: 5A A5 06 83 5002 01 0000; the high byte of VP+2 address is 0x00, indicating the stop state.
Tx send: 5A A5 04 83 5004 01; attribute is located at VP+4 address, read 1 word data.
Rx return: 5A A5 06 83 5004 01 0006; 0x0006 indicates the total video length of 6S, which can be used as the total
playback length.
Tx send: 5A A5 04 83 5005 01; attribute is located at VP+5 address, read 1 word length data.
Rx return: 5A A5 06 83 5005 01 0001; 0x0001 indicates that the 1st second video is being played, which can be
used as the current playback length position display.
Rx return: 5A A5 06 83 5005 01 0002; 0x0002 means in playing the 2nd second video, can be used as the current
playback duration position display.
......
Rx returns: 5A A5 06 83 5005 01 0006; 0x0006 means the 6th second of video is playing and can be used as the
current playback position.
237
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.28.5 DEMO
Resolution : DEMO 800*480, video 640*360.
DEMO link: http://inforum .dwin.com .cn:20080/forum .php?mod=viewthread&tid=6404
DEMO function description.
① Use data variable to display, read VP+5 video position, and write to variable address to display.
② Use return keycode, key value 0x5A03 to play.
③ Use return keycode, key value 0x5A02 to pause.
④ Use return keycode, key value 0x5A01 to stop.
⑤ ⑥ Use synchrodata return to play from the specified position.
⑦ Use incremental adjustment, cycle between lower limit 0 and upper limit 1, detect the variable address to upload
key value 1, then refresh a play instruction at regular intervals, upload key value 0 to close the cycle play.
⑧ use variable icon display, refresh icon position according to video duration, using 100 progress icons, or modify
variable icon position with description pointer.
For example, 100 S video just corresponds to 100 icon state; 107 S video corresponds to switching icon every 1.07 S.
⑨ use drag adjustment, system variable interface 0 x00 A1 high byte to adjust the volume.
⑩ For multiple page playback, use return keycode to switch page, set key value to 0x5A01 for pause or 0x5A02 for
stop, to close the previous video and audio after page switching.
238
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
7.28.6 Effect
239
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
Step 4 : Import successful, the original DWIN_ SET inside the icon library, character library and other files are
copied to the new project DWIN_ SET. You just need to adjust the control position.
Step 3: Click the standard control, and then other control s will be aligned with it. Left- aligned, right- aligned,
same size of controls can be set in the same way.
8.5 Preview
During the development, you can click Display_ Preview from the current page to preview from the current
position to check whether the project is set correctly.
Double- click the black border of the preview to exit.
240
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
If the user copies controls of the larger resolution project to the smaller resolution project, you mat find that the
control disappears.
In this case, press Ctrl+ A to select all, and press " ↑" or " ←" on the keyboard . Then you will see the
corresponding controls.
If icon or text display control are used, the size of them generally needs to be re- adjusted.
241
DWIN Technology
Professional, Creditable, Successful T5 L_ DGUSII Application Development Guide
242
DWIN Technology
Professional, Creditable, Successful
T5 L_ DGUSII Application Development Guide
243
DWIN Technology
Professional, Creditable, Successful
T5 L_ DGUSII Application Development Guide
If you have any questions during the use of this document or DWIN products, or want to know more about the latest
information of DWIN products, please contact us.
Hotline: 400 018 9008
Corporate QQ and WeChat: 400 018 9008
DWIN website: https:// www.dwin-global.com/
Thank you for your continuous support to DWIN, your support is the driving force for our progress!
244