diff --git a/ports/espressif/boards/waveshare_esp32_s3_zero/board.h b/ports/espressif/boards/waveshare_esp32_s3_zero/board.h index 589b7b1f..d104d6c2 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_zero/board.h +++ b/ports/espressif/boards/waveshare_esp32_s3_zero/board.h @@ -51,6 +51,9 @@ // Number of neopixels #define NEOPIXEL_NUMBER 1 +// Invert Neopixel red and green +#define NEOPIXEL_INVERT_RG 1 + // LED for indicator and writing flash // If not defined neopixel will be use for flash writing instead diff --git a/src/main.c b/src/main.c index cd8255fb..c2dadff1 100644 --- a/src/main.c +++ b/src/main.c @@ -37,10 +37,17 @@ //--------------------------------------------------------------------+ //#define USE_DFU_BUTTON 1 +#ifndef NEOPIXEL_INVERT_RG uint8_t RGB_USB_UNMOUNTED[] = { 0xff, 0x00, 0x00 }; // Red uint8_t RGB_USB_MOUNTED[] = { 0x00, 0xff, 0x00 }; // Green uint8_t RGB_WRITING[] = { 0xcc, 0x66, 0x00 }; uint8_t RGB_DOUBLE_TAP[] = { 0x80, 0x00, 0xff }; // Purple +#else +uint8_t RGB_USB_UNMOUNTED[] = { 0x00, 0xff, 0x00 }; // Red +uint8_t RGB_USB_MOUNTED[] = { 0xff, 0x00, 0x00 }; // Green +uint8_t RGB_WRITING[] = { 0x66, 0xcc, 0x00 }; +uint8_t RGB_DOUBLE_TAP[] = { 0x00, 0x80, 0xff }; // Purple +#endif uint8_t RGB_UNKNOWN[] = { 0x00, 0x00, 0x88 }; // for debug uint8_t RGB_OFF[] = { 0x00, 0x00, 0x00 };