|
The demo mainly demonstrates the main functions of the T5L_DGUSII platform,For a better demo, the description pointer and the 22. Bin file of power-on loading data are used.
For example,
(1)Turn touch sounds on or off
The variable address of 0x80 starts with a 2-word storage instruction:OFF(0x):5A 00 00 30,ON:5A 00 00 38
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to 0x80 to close and open the touch sound.
(2)Reset
The variable address of 0x0004 starts with a 2-word storage instruction(0x):55 AA 5A A5,
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to 0x0004 to reset.
(3)Curve
In order to display curve, just store the instruction into the 22.bin file that can load data to RAM when power-on,
and then,configure the sync control,after pressing, load the data to the address of curve control to display curve.
With the description pointer, the curve can be moved up and down, scaled, and color changed.
For example,
Store the curve data in the variable space 0x2070 and return to the variable address 0x0310 by pressing,
Instructions(0x):5A A5 01 00 00 0A 00 00 00 C8 00 00 00 C8 00 00 00 C8 00 00 00 C8 00 00 00 C8
0x3010 is the description pointer,
So, the increment adjustment control setting the address of the 3019H can realize the curve scaling,
easily,Configure the color value to 0x3017 to change the color of the curve.
(4)Draw circle
Use basic graphic control.
The instruction(0x): 0005 0001 0136 010B 0050 001F
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to the address of basic graphic control to display circle.
With the increment adjustment button,Modify the radius of the circle, the size can be adjusted.
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|