当前位置:网站首页>GD32F4xx控制DGUS触控按键
GD32F4xx控制DGUS触控按键
2022-06-12 18:04:00 【madao1234】
1、DGUS触控功能
1.1 DGUS触控控件
在DGUS Tool开发软件中,触控相关的控件有基础触控和按键返回2种。基础触控种可以直接设置按钮效果、是否进行页面切换及按键值的定义。基础触控一般主要用于按键录入。 如果想要用代码控制DGUS屏触控的功能,使用按键返回控件。本文主要介绍按键返回控件的使用。
上图中,红框内 手型图标为基础触控、另一个为按键返回。
1.2 按键返回控件配置

1) X和Y是按键返回控件在页面中的位置,W和H是控件的宽度和高度。
2)名称定义, 可以根据自己的设计为按键返回控件设置相应的名称。
3)数据自动上传,这个选项需要勾选,当触控区域被按下时,DGUS屏会将按键的键值通过串口发送给控制芯片。这是实现代码控制DGUS触控功能的基础。
4)页面切换,由于是想要通过GD32F4xx的代码控制按键的功能,故此处的页面切换不设置。
5)键值:按键按下后返回的值(长度2字节)。
6)变量地址: 变量存储器的指针。
2、GD32F4xx控制代码
之前写过的一篇文
边栏推荐
- 机器学习系列(3):Logistic回归
- Gossip about the source code of redis 89
- Sqlserver common statements and functions
- MySQL learning notes
- Stream流注意点
- SSM集成FreeMarker以及常用语法
- USB转串口那些事儿—最大峰值串口波特率VS连续通信最高波特率
- An easy-to-use IDE for small programs
- HTTP cache < strong cache and negotiation cache >
- C business serial number rule generation component
猜你喜欢

Click the list page of vant3+ts+pinia tab to enter the details. The tab on the details page is highlighted in the original position, and the refresh highlight is in the first item by default
![[csp]202012-2 optimal threshold for period end forecast](/img/40/9b59bd692bcfe05d16614cc6d55d1f.png)
[csp]202012-2 optimal threshold for period end forecast

小程序+App,低成本获客及活跃的一种技术组合思路

Vant3+ts H5 pages are nested into apps to communicate with native apps

The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more than one time zone. ......

DRM driven MMAP detailed explanation: (I) preliminary knowledge

网盘和对象云存储管理之磁盘映射工具比较

MySQL学习笔记

干货 | 一文搞定 pytest 自动化测试框架(二)

js两数之和
随机推荐
An easy-to-use IDE for small programs
JDBC quick start tutorial
High speed layout guidelines incomplete
Bug record: data truncation: incorrect datetime value:
Gospel of audio and video developers, rapid integration of AI dubbing capability
PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat
Use the official go Library of mongodb to operate the original mongodb
Queue priority of message queue practice
leetcode 300. Longest increasing subsequence
C#的变量
73. matrix zeroing (marking method)
机器学习系列(5):朴素贝叶斯
C operation database added business data value content case school table
Overall flow chart of kernel interrupt
迄今微软不同时期发布的SQL Server各版本之间的大致区别,供参考查阅
Applet and app are owned at the same time? A technical scheme with both
First principles of enterprise architecture
Extreme Programming -- Practice of root cause analysis
Continued 2 asp Net core router basic use demonstration 0.2 acquisition of default controller data
MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column