handle watch variant with red/blue LED

This commit is contained in:
Joey Castillo
2021-08-31 20:28:36 -04:00
parent a232999e93
commit 71e411d860
4 changed files with 34 additions and 10 deletions

View File

@@ -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)