Skip to content

Commit b550a44

Browse files
committed
Fix for APA102
1 parent 96455a6 commit b550a44

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

include/calibration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#ifdef NEOPIXEL_RGBW
2929
typedef RgbwColor ColorDefinition;
3030
#elif defined(SPILED_APA102)
31-
typedef DotStarColor ColorDefinition;
31+
typedef RgbwColor ColorDefinition;
3232
#else
3333
typedef RgbColor ColorDefinition;
3434
#endif

include/main.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void processData()
215215
#ifdef NEOPIXEL_RGBW
216216
frameState.color.W = input;
217217
#elif defined(SPILED_APA102)
218-
frameState.color.Brightness = input;
218+
frameState.color.W = input;
219219
#endif
220220
frameState.addFletcher(input);
221221

@@ -240,7 +240,7 @@ void processData()
240240
}
241241

242242
#if defined(SPILED_APA102)
243-
frameState.color.Brightness = 0xFF;
243+
frameState.color.W = 0xFF;
244244
#endif
245245

246246
#ifdef NEOPIXEL_RGBW

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
#endif
7575

7676
#ifdef SPILED_APA102
77-
#define LED_DRIVER NeoPixelBus<DotStarBgrFeature, DotStarEsp32DmaHspiMethod>
77+
#define LED_DRIVER NeoPixelBus<DotStarLbgrFeature, DotStarEsp32DmaHspiMethod>
7878
#elif SPILED_WS2801
7979
#define LED_DRIVER NeoPixelBus<NeoRbgFeature, NeoWs2801Spi2MhzMethod>
8080
#endif
@@ -111,7 +111,7 @@
111111
#define LED_DRIVER2 NeoPixelBus<NeoGrbFeature, NeoEsp32I2s0Ws2812xMethod>
112112
#endif
113113
#elif SPILED_APA102
114-
#define LED_DRIVER2 NeoPixelBus<DotStarBgrFeature, DotStarEsp32DmaHspiMethod>
114+
#define LED_DRIVER2 NeoPixelBus<DotStarLbgrFeature, DotStarEsp32DmaHspiMethod>
115115
#elif SPILED_WS2801
116116
#define LED_DRIVER2 NeoPixelBus<NeoRbgFeature, NeoWs2801Spi2MhzMethod>
117117
#endif
@@ -133,7 +133,7 @@
133133
#define LED_DRIVER2 NeoPixelBus<NeoGrbFeature, NeoEsp32I2s0Ws2812xMethod>
134134
#endif
135135
#elif SPILED_APA102
136-
#define LED_DRIVER2 NeoPixelBus<DotStarBgrFeature, DotStarEsp32DmaVspiMethod>
136+
#define LED_DRIVER2 NeoPixelBus<DotStarLbgrFeature, DotStarEsp32DmaVspiMethod>
137137
#elif SPILED_WS2801
138138
#define LED_DRIVER2 NeoPixelBus<NeoRbgFeature, NeoWs2801Spi2MhzMethod>
139139
#endif

0 commit comments

Comments
 (0)