mirror of
https://github.com/speedypotato/chuni-lite.git
synced 2026-09-22 22:28:23 +03:00
Update code from WS2811 -> WS2812B
This commit is contained in:
@@ -84,8 +84,8 @@ void setup() {
|
||||
pinMode(COIN, INPUT_PULLUP);
|
||||
|
||||
// just steal the raw array values lol
|
||||
FastLED.addLeds<WS2811, LEFT_PIN, RGB>(&ledData.data[50], NUM_LEDS).setCorrection( TypicalLEDStrip );
|
||||
FastLED.addLeds<WS2811, RIGHT_PIN, RGB>(&ledData.data[60], NUM_LEDS).setCorrection( TypicalLEDStrip );
|
||||
FastLED.addLeds<WS2812B, LEFT_PIN, RGB>(&ledData.data[50], NUM_LEDS).setCorrection( TypicalLEDStrip );
|
||||
FastLED.addLeds<WS2812B, RIGHT_PIN, RGB>(&ledData.data[60], NUM_LEDS).setCorrection( TypicalLEDStrip );
|
||||
// initialize to white
|
||||
fill_solid(&ledData.data[50], NUM_LEDS, CRGB::White);
|
||||
fill_solid(&ledData.data[60], NUM_LEDS, CRGB::White);
|
||||
|
||||
Reference in New Issue
Block a user