here is what I got:
- teensy++ 2.0 with code below
- Glediator configured for Glediator_Protocol/Single_Pixels/HL_TL/RGB/B_1000000
- led matrix with the PL9823 leds (80 of them)
I first off have to set the code to 160 on the teensy just to get it to at least make the leds change. even when i have it set to that OR the 80 leds, it does not show what is on screen (see video below). I have no clue what to try next.
Code
#include "FastLED.h"
#define NUM_LEDS 160
const int dataline = PIN_B4;
CRGB leds[NUM_LEDS];
void setup()
{
digitalWrite(6,LOW);
Serial.begin(1000000);
LEDS.addLeds<WS2812B, dataline>(leds, NUM_LEDS);
for (int p=0;p< NUM_LEDS;p++)
{
leds[p] = CRGB::Black;
FastLED.show();
}
}
int serialReadBlocking()
{
while (!Serial.available())
{
}
return Serial.read();
}
void loop()
{
while (serialReadBlocking() != 1)
{
}
for (long i=0; i < NUM_LEDS; i++)
{
leds[i].r = serialReadBlocking();
leds[i].g = serialReadBlocking();
leds[i].b = serialReadBlocking();
}
FastLED.show();
}