handle watch variant with red/blue LED
This commit is contained in:
@@ -39,8 +39,14 @@
|
||||
#define SEG19 GPIO(GPIO_PORTA, 17)
|
||||
#define SEG20 GPIO(GPIO_PORTA, 18)
|
||||
#define SEG21 GPIO(GPIO_PORTA, 19)
|
||||
#define RED GPIO(GPIO_PORTA, 20)
|
||||
#define GREEN GPIO(GPIO_PORTA, 21)
|
||||
#ifdef WATCH_SWAP_LED_PINS
|
||||
#define RED GPIO(GPIO_PORTA, 21)
|
||||
#define GREEN GPIO(GPIO_PORTA, 20)
|
||||
#else
|
||||
#define RED GPIO(GPIO_PORTA, 20)
|
||||
#define GREEN GPIO(GPIO_PORTA, 21)
|
||||
#endif
|
||||
#define BTN_ALARM GPIO(GPIO_PORTA, 2)
|
||||
#define BTN_LIGHT GPIO(GPIO_PORTA, 22)
|
||||
#define BTN_MODE GPIO(GPIO_PORTA, 23)
|
||||
#define BUZZER GPIO(GPIO_PORTA, 27)
|
||||
@@ -51,7 +57,6 @@
|
||||
#define A4 GPIO(GPIO_PORTB, 0)
|
||||
#define D0 GPIO(GPIO_PORTB, 3)
|
||||
#define D1 GPIO(GPIO_PORTB, 0)
|
||||
#define BTN_ALARM GPIO(GPIO_PORTA, 2)
|
||||
#define COM0 GPIO(GPIO_PORTB, 6)
|
||||
#define COM1 GPIO(GPIO_PORTB, 7)
|
||||
#define COM2 GPIO(GPIO_PORTB, 8)
|
||||
|
||||
Reference in New Issue
Block a user