Skip to content

Glediator example problem #18

@olablt

Description

@olablt

Hello,

I am using Glediator example code and the LEDs on even lines are shifted by 2 pixels:

image

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions