Skip to content

Commit 9569445

Browse files
ubidefeoaentinger
authored andcommitted
Fix RGB LEDs colour order
The current colour arrangement used for DotStar has Green and Red swapped. At least on my unit this is what I experience. This PR fixes the order to `DOTSTAR_BGR`, but it might be useful to check if different batches of APA102c ordered for production might have different colour order
1 parent 497fa01 commit 9569445

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Arduino_MKRIoTCarrier.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ class MKRIoTCarrier{
125125
Adafruit_ST7789 display = Adafruit_ST7789(&SPI, TFT_CS, TFT_DC, -1);
126126

127127
//RGB LEDs
128-
Adafruit_DotStar leds = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BRG);
129-
private:
128+
Adafruit_DotStar leds = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);
130129
};
131130
#endif

0 commit comments

Comments
 (0)