当前位置:网站首页>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控制代码
之前写过的一篇文
边栏推荐
- Window版本pytorch入门深度学习环境安装与配置
- Schematic diagram of active differential crystal oscillator and differences among lv-pecl, LVDS and HCSL
- Leetcode 674 longest incrementing substring
- Gossip about the source code of redis 89
- TypeScript常用类型(一)
- SSM integrates FreeMarker and common syntax
- 机器学习系列(5):朴素贝叶斯
- MySQL learning notes
- First principles of enterprise architecture
- Write a select based concurrent server
猜你喜欢

ESP-IDF 添加自己的组件

Window版本pytorch入门深度学习环境安装与配置

Lightweight and convenient small program to app technology solution to realize interconnection with wechat / traffic app

js两数之和

机器学习系列(3):Logistic回归

PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat

First principles of enterprise architecture

TypeScript类型声明文件(三)

HTTP缓存<强缓存与协商缓存>

Vant3+ts H5 pages are nested into apps to communicate with native apps
随机推荐
有源差分晶振原理圖以及LV-PECL、LVDS、HCSL區別
C#简单介绍
Nixos 22.05 installation process record
Vant3+ts dropdownmenu drop-down menu, multi data can be scrolled
js快速排序
JS moves the 0 in the array to the end
Vulnhub[DC3]
HTTP cache < strong cache and negotiation cache >
Overall flow chart of kernel interrupt
About datasets
C business serial number rule generation component
EasyCode模板
The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more than one time zone. ......
Vant3+ts H5 pages are nested into apps to communicate with native apps
[csp]202012-2 optimal threshold for period end forecast
有源差分晶振原理图以及LV-PECL、LVDS、HCSL区别
js判断回文数
ESP32-C3 ESP-IDF 配置smartconfig 和 sntp 获取网络时间
Queue priority of message queue practice
JS dichotomy