Skip to content

Commit

Permalink
NEOPIXEL_INVERT_RG
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Oct 1, 2024
1 parent d5e78d7 commit 644ef14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/espressif/boards/waveshare_esp32_s3_zero/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 644ef14

Please sign in to comment.