6 lines
219 B
C
6 lines
219 B
C
#define KEY_PRESSED GPIO_PIN_RESET
|
|
#define KEY_NOT_PRESSED GPIO_PIN_SET
|
|
//WK_UP 是高电平有效,其他三个按键是低电平有效。
|
|
#define KEY_UP_PRESSED GPIO_PIN_SET
|
|
#define KEY_UP_NOT_PRESSED GPIO_PIN_RESET
|