迪文科技论坛

 找回密码
 立即注册
搜索
查看: 774|回复: 0

[DEMO]DMG72720C041_03W T5L DGUS II project

[复制链接]

542

主题

159

回帖

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10522
发表于 2020-9-3 16:27:09 | 显示全部楼层 |阅读模式
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)Touch any position to display coordinate values
System variable interface 0x17 is the coordinate position X coordinate pressed by the touch screen,and 0x18 is  X coordinate.
Coordinate with data variable display control can display the coordinate value of touch in real time.

(2)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 0x1006 and return to the variable address 0x0310 by pressing,
Instructions(0x):5A A5 01 00 00 0C 00 00 00 64 00 00 00 64 00 00 00 64 00 00 00 64 00 00 00 64 00 00 00 64
0x5000 is the description pointer,
So, the drag adjustment control setting the address of the 5005H  to drag the curve up and down,
the increment adjustment control setting the address of the 5009H can realize the curve scaling,
easily,Configure the color value to 0x5007 to change the color of the curve.

(3)Basic graphic control
The instruction(0x):
Dot 0001 0001 0168 012C 001F
Line 0002 0001 0F00 00F0 00E0 01CC 0190
Circle 0005 0001 0168 012C 0082 001F
Rectangle 0004 0001 00F0 00E0 01CC 0190 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.



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2024-4-27 19:34 , Processed in 0.079425 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表