Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Wippersnapper_Boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#define STATUS_DOTSTAR_PIN_DATA PIN_DOTSTAR_DATA ///< DotStar Data Pin
#define STATUS_DOTSTAR_PIN_CLK PIN_DOTSTAR_CLOCK ///< DotStar Clock Pin
#define STATUS_DOTSTAR_NUM 5 ///< Number of DotStar LEDs
#define STATUS_DOTSTAR_COLOR_ORDER DOTSTAR_GBR ///< DotStar Color Order
#define STATUS_DOTSTAR_COLOR_ORDER DOTSTAR_BGR ///< DotStar Color Order
#define USE_PSRAM ///< Board has PSRAM, use it for dynamic memory allocation
#elif defined(ARDUINO_METRO_ESP32S2)
#define BOARD_ID "metroesp32s2"
Expand Down
7 changes: 4 additions & 3 deletions src/components/statusLED/Wippersnapper_StatusLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Adafruit_NeoPixel *statusPixel = new Adafruit_NeoPixel(
#ifdef USE_STATUS_DOTSTAR
Adafruit_DotStar *statusPixelDotStar =
new Adafruit_DotStar(STATUS_DOTSTAR_NUM, STATUS_DOTSTAR_PIN_DATA,
STATUS_DOTSTAR_PIN_CLK, DOTSTAR_BRG);
STATUS_DOTSTAR_PIN_CLK, DOTSTAR_BGR);
#endif

/****************************************************************************/
Expand Down Expand Up @@ -67,7 +67,8 @@ void initStatusLED() {
#else
statusPixelDotStar =
new Adafruit_DotStar(STATUS_DOTSTAR_NUM, STATUS_DOTSTAR_PIN_DATA,
STATUS_DOTSTAR_PIN_CLK, STATUS_DOTSTAR_COLOR_ORDER)
STATUS_DOTSTAR_PIN_CLK,
STATUS_DOTSTAR_DEFAULT_COLOR_ORDER)
#endif
statusPixelDotStar->begin();
statusPixelDotStar->clear();
Expand Down Expand Up @@ -412,4 +413,4 @@ void statusLEDBlink(ws_led_status_t statusState) {
delay(100);
blinkNum--;
}
}
}
1 change: 1 addition & 0 deletions src/components/statusLED/Wippersnapper_StatusLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ typedef enum ws_led_status_t {
#define LED_ERROR RED ///< Error state

#define STATUS_PIXEL_BRIGHTNESS_DEFAULT 0.5 ///< Default status pixel brightness
#define STATUS_DOTSTAR_DEFAULT_COLOR_ORDER DOTSTAR_BGR ///< FunHouse default

// Status LED
void initStatusLED();
Expand Down
Loading