//KEY1宏定义三板斧
#define PioKey1 PIO2_6 //P2.6
#define PortKey1 P2 //P2
#define PinKey1 Pin6 //Px.6
//KEY2宏定义三板斧
#define PioKey2 PIO2_0 //P2.0
#define PortKey2 P2 //P2
#define PinKey2 Pin0 //Px.0
//LED1宏定义三板斧
#define PioLed1 PIO1_8 //P1.8
#define PortLed1 P1 //P1
#define PinLed1 Pin8 //Px.8
//LED2宏定义三板斧
#define PioLed2 PIO0_2 //P0.2
#define PortLed2 P0 //P0
#define PinLed2 Pin2 //Px.2
//LED3宏定义三板斧
#define PioLed3 PIO2_7 //P2.7
#define PortLed3 P2 //P2
#define PinLed3 Pin7 //Px.7
//LED4宏定义三板斧
#define PioLed4 PIO2_8 //P2.8
#define PortLed4 P2 //P2
#define PinLed4 Pin8 //Px.8
//LED5宏定义三板斧
#define PioLed5 PIO2_1 //P2.1
#define PortLed5 P2 //P2
#define PinLed5 Pin1 //Px.1
//LED6宏定义三板斧
#define PioLed6 PIO1_9 //P1.9
#define PortLed6 P1 //P1
#define PinLed6 Pin9 //Px.9
//LED7宏定义三板斧
#define PioLed7 PIO3_4 //P3.4
#define PortLed7 P3 //P3
#define PinLed7 Pin4 //Px.4
//LED8宏定义三板斧
#define PioLed8 PIO3_5 //P3.5
#define PortLed8 P3 //P3
#define PinLed8 Pin5 //Px.5
//BEEP宏定义三板斧
#define PioBeep PIO0_8 //P0.8
#define PortBeep P0 //P0
#define PinBeep Pin8 //Px.8 |