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

📄 option.h

📁 基于sunplus的16MCU产品,SPMC75的键盘和显示的例子,完整的工程,对单片机开发工程式师有一定的借鉴作用.
💻 H
字号:
#ifndef	__OPTION_h__
#define	__OPTION_h__
//	write your header here
//Key IO
#define Key_Port_Data		P_IOA_Data->W
#define Key_Port_Buffer		P_IOA_Buffer->W
#define Key_Port_Dir		P_IOA_Dir->W
#define Key_Port_Attrib		P_IOA_Attrib->W
#define Key_Port_SPE		P_IOA_SPE->W
#define Key_Const			0x26e0

//LED IO
#define LED_Data_Port		P_IOB_Buffer->W
#define LED_Data_Port_Dir	P_IOB_Dir->W
#define LED_Port_Attrib		P_IOB_Attrib->W
#define GPIO_CLK			0x0080
#define GPIO_DAT			0x0040
#define GPIO_Load			0x0100

#endif

⌨️ 快捷键说明

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