-
Couldn't load subscription status.
- Fork 116
Open
Description
Hello,
I am using Glediator example code and the LEDs on even lines are shifted by 2 pixels:
The text should be "olab.lt"
There is no problem when I use this code:
#include "FastLED.h"
#define NUM_LEDS 60*18
const int dataline = 2;
CRGB leds[NUM_LEDS];
void setup() {
Serial.begin(115200);
LEDS.addLeds<WS2812B, dataline>(leds, NUM_LEDS);
}
int serialGlediator() {
while (!Serial.available()) {}
return Serial.read();
}
void loop() {
while (serialGlediator() != 1) {}
for (int i=0; i < NUM_LEDS; i++) {
leds[i].r = serialGlediator();
leds[i].g = serialGlediator();
leds[i].b = serialGlediator();
}
FastSPI_LED.show();
}
But this is working only for leds on data pin 2. I have 2 panels on 2 pins - 2 and 14.
How can I resolve this issue?
Metadata
Metadata
Assignees
Labels
No labels
