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

📄 pic_setting.h

📁 This the code using PIC MCU to control
💻 H
字号:
#include <pic.h>
__CONFIG(XT&WDTDIS&PWRTDIS&BORDIS);

#define RACNF	0x18
#define RBCNF	0x3D
#define RCCNF	0x00


#define P_SCLK	RB1  //CC1100
#define P_SO	RB0  //CC1100模组定义
#define P_SI	RA2  //
#define P_GDO2	RA3  //
#define P_GDO0	RA4  //
#define P_CSn	RA5  //


#define	DPY_A	RC4	//数码管定义
#define	DPY_B	RC5
#define	DPY_C	RC6
#define	DPY_D	RC7
#define	DPY_E	RC0
#define	DPY_F	RC1
#define	DPY_G	RC2
#define	DPY_H	RC3

#define	SW1	RB2
#define	SW2	RB3
#define	SW3	RB4
#define	SW4	RB5

#define	LED1	RB6
#define	LED2	RB7


unsigned char Current_key;
unsigned char Old_key;
unsigned char Keyflag;
unsigned char Statusflag=0;



⌨️ 快捷键说明

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