⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yl_1788_touch.h

📁 优龙LPC1788开发板资料
💻 H
字号:
#ifndef YL_LPC1788_TOUCH_H_
#define YL_LPC1788_TOUCH_H_

#include "LPC177x_8x.h"

/*Type A I/O Control registers */
#define IO_Pull_up 	  0x0|(0x2<<3)|(0x5<<5)		//Gpio pull-up
#define ADC_In 	     (0x1)|(0x0<<3)				//ADC Input
#define IO_No_UD     (0x3)|(0x0<<3)|(0x5<<5)	//Gpio no pull-up	and pull-down

#define XR 12
#define XL 23
#define YU 25
#define YD 24

void touch_init(void);
void Touch_INT_EN(void);
void Touch_INT_Dis(void);
void Read_XY_coordinate(void);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -