RyanElmendorf
Member
I'm experiencing a limit to the number of leds in a single strand of 1365 using the OctoWS2811 library on a Teensy 4.1
When I run the code below it fails to update the leds but does not crash.
Is there a limit to the number of leds in a single strand?
I apologize in advance if I missed something while googling this.
I only have one type of strand available to me so I'm not totally certain that it's not the leds themselves.
When I run the code below it fails to update the leds but does not crash.
Is there a limit to the number of leds in a single strand?
I apologize in advance if I missed something while googling this.
I only have one type of strand available to me so I'm not totally certain that it's not the leds themselves.
Code:
#include <OctoWS2811.h>
const int numPins = 1;
byte pinList[numPins] = { 7 };
//const int ledsPerStrip = 1365; //works
const int ledsPerStrip = 1366; //don't
const int bytesPerLED = 3; // change to 4 if using RGBW
DMAMEM int displayMemory[ledsPerStrip * numPins * bytesPerLED / 4];
int drawingMemory[ledsPerStrip * numPins * bytesPerLED / 4];
const int config = WS2811_GRB | WS2811_800kHz;
OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config, numPins, pinList);
void setup() {
leds.begin();
leds.show();
}
#define RED 0x160000
#define GREEN 0x001600
#define BLUE 0x000016
void loop() {
int microsec = 1000000;
colorWipe(RED, microsec);
colorWipe(GREEN, microsec);
colorWipe(BLUE, microsec);
}
void colorWipe(int color, int wait) {
for (int i = 0; i < leds.numPixels(); i++) {
leds.setPixel(i, color);
}
leds.show();
delayMicroseconds(wait);
}