当前位置:网站首页>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控制代码
之前写过的一篇文
边栏推荐
- C brief introduction
- EasyCode模板
- Resttemplateconfig configuration print request response log under soringboot
- MIPS general purpose register + instruction
- 干货 | 一文搞定 pytest 自动化测试框架(二)
- Eve-ng installation (network device simulator)
- 机器学习系列(5):朴素贝叶斯
- 面试题总结
- Channel Original
- Relationship between resolution and line field synchronization signal
猜你喜欢
js两数之和
C#简单介绍
Queue priority of message queue practice
Lightweight and convenient small program to app technology solution to realize interconnection with wechat / traffic app
A method of quickly reusing wechat login authorization in app
Window版本pytorch入门深度学习环境安装与配置
High speed layout guidelines incomplete
vant3+ts 封装uploader上传图片组件
"Big fat • small lesson" - talk about big file segmentation and breakpoint sequel
PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat
随机推荐
leetcode 300. Longest increasing subsequence
JS for Fibonacci sequence
静态内存分配和动态内存分配小结
MIPS general purpose register + instruction
JDBC快速入门教程
leetcode151 翻转字符串里的单词
Introduction to cookie usage
Use the official go Library of mongodb to operate the original mongodb
An easy-to-use IDE for small programs
Make good use of IDE, speed up R & D efficiency by 100%
Reconstruction -- sort out and decompose the inheritance system
leetcode 647. 回文子串
Schematic diagram of active differential crystal oscillator and differences among lv-pecl, LVDS and HCSL
Graphical data model for system design
Leetcode 674 longest incrementing substring
HTTP cache < strong cache and negotiation cache >
Schéma de cristallisation différentielle active et différence entre LV - PECL, LVDS et hcsl
C brief introduction
ftrace
Small program +app, a low-cost and active technology combination idea