mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
rename definition for special edition boards
This commit is contained in:
parent
e512b731bb
commit
e32f1d1926
|
@ -23,7 +23,7 @@
|
|||
#define WATCH_RED_TCC_CHANNEL 0
|
||||
#define WATCH_RED_TCC_PINMUX PINMUX_PA04E_TCC0_WO0
|
||||
|
||||
#ifdef WATCH_SWAP_LED_PINS
|
||||
#ifdef WATCH_IS_BLUE_BOARD
|
||||
#define GREEN GPIO(GPIO_PORTB, 22)
|
||||
#define WATCH_GREEN_TCC_CHANNEL 2
|
||||
#define WATCH_GREEN_TCC_PINMUX PINMUX_PB22F_TCC0_WO2
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#define WATCH_BUZZER_TCC_CHANNEL 1
|
||||
|
||||
// LEDs
|
||||
#ifdef WATCH_SWAP_LED_PINS
|
||||
#ifdef WATCH_IS_BLUE_BOARD
|
||||
#define RED GPIO(GPIO_PORTA, 21)
|
||||
#define WATCH_RED_TCC_PINMUX PINMUX_PA21F_TCC0_WO7
|
||||
#define WATCH_RED_TCC_CHANNEL 3
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#define WATCH_BUZZER_TCC_CHANNEL 1
|
||||
|
||||
// LEDs
|
||||
#ifdef WATCH_SWAP_LED_PINS
|
||||
#ifdef WATCH_IS_BLUE_BOARD
|
||||
#define RED GPIO(GPIO_PORTA, 21)
|
||||
#define WATCH_RED_TCC_PINMUX PINMUX_PA21F_TCC0_WO7
|
||||
#define WATCH_RED_TCC_CHANNEL 3
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#define WATCH_BUZZER_TCC_CHANNEL 1
|
||||
|
||||
// LEDs
|
||||
#ifdef WATCH_SWAP_LED_PINS
|
||||
#ifdef WATCH_IS_BLUE_BOARD
|
||||
#define RED GPIO(GPIO_PORTA, 21)
|
||||
#define WATCH_RED_TCC_PINMUX PINMUX_PA21F_TCC0_WO7
|
||||
#define WATCH_RED_TCC_CHANNEL 3
|
||||
|
|
2
make.mk
2
make.mk
|
@ -202,7 +202,7 @@ SRCS += \
|
|||
endif
|
||||
|
||||
ifeq ($(LED), BLUE)
|
||||
CFLAGS += -DWATCH_SWAP_LED_PINS
|
||||
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
||||
endif
|
||||
|
||||
ifdef FIRMWARE
|
||||
|
|
|
@ -33,7 +33,7 @@ const char preferences_face_titles[PREFERENCES_FACE_NUM_PREFEFENCES][11] = {
|
|||
"TO ", // Timeout: how long before we snap back to the clock face?
|
||||
"LE ", // Low Energy mode: how long before it engages?
|
||||
"LT ", // Light: duration
|
||||
#ifdef WATCH_SWAP_LED_PINS
|
||||
#ifdef WATCH_IS_BLUE_BOARD
|
||||
"LT blu ", // Light: blue component (for watches with blue LED)
|
||||
#else
|
||||
"LT grn ", // Light: green component
|
||||
|
|
Loading…
Reference in a new issue