Skip to content

Commit c0f1935

Browse files
authored
Fix FunHouse and DotStar colour ordering
1 parent 2608107 commit c0f1935

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Wippersnapper_Boards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#define STATUS_DOTSTAR_PIN_DATA PIN_DOTSTAR_DATA ///< DotStar Data Pin
4242
#define STATUS_DOTSTAR_PIN_CLK PIN_DOTSTAR_CLOCK ///< DotStar Clock Pin
4343
#define STATUS_DOTSTAR_NUM 5 ///< Number of DotStar LEDs
44-
#define STATUS_DOTSTAR_COLOR_ORDER DOTSTAR_GBR ///< DotStar Color Order
44+
#define STATUS_DOTSTAR_COLOR_ORDER DOTSTAR_BGR ///< DotStar Color Order
4545
#define USE_PSRAM ///< Board has PSRAM, use it for dynamic memory allocation
4646
#elif defined(ARDUINO_METRO_ESP32S2)
4747
#define BOARD_ID "metroesp32s2"

src/components/statusLED/Wippersnapper_StatusLED.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void initStatusLED() {
6767
#else
6868
statusPixelDotStar =
6969
new Adafruit_DotStar(STATUS_DOTSTAR_NUM, STATUS_DOTSTAR_PIN_DATA,
70-
STATUS_DOTSTAR_PIN_CLK, STATUS_DOTSTAR_COLOR_ORDER)
70+
STATUS_DOTSTAR_PIN_CLK, STATUS_DOTSTAR_DEFAULT_COLOR_ORDER)
7171
#endif
7272
statusPixelDotStar->begin();
7373
statusPixelDotStar->clear();

src/components/statusLED/Wippersnapper_StatusLED.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typedef enum ws_led_status_t {
5757
#define LED_ERROR RED ///< Error state
5858

5959
#define STATUS_PIXEL_BRIGHTNESS_DEFAULT 0.5 ///< Default status pixel brightness
60+
#define STATUS_DOTSTAR_DEFAULT_COLOR_ORDER DOTSTAR_BGR ///< FunHouse default
6061

6162
// Status LED
6263
void initStatusLED();

0 commit comments

Comments
 (0)