rstephan / ArtnetWifi

Arduino library for Art-Net (artnet) over WiFi, send and receive DMX data. Runs on ESP8266, ESP32, Pi Pico W, WiFi101 and WiFiNINA devices.
Other
363 stars 61 forks source link

More than 512 leds, no light comes through #32

Open davidboon78 opened 3 years ago

davidboon78 commented 3 years ago

I'm using an ESP32 and trying to get 1024 LEDs to run, but if I make numLeds more than 512, even 513, the entire light array goes black. Some investigation finds that onDmxFrame sets sendFrame to 0 every time it's called. I tried to eliminate sendFrame but the FPS seems to drop significantly. Any suggestions?

const int lastUniverse=startUniverse+maxUniverses;

void onDmxFrame(uint16_t universe, uint16_t length, uint8_t sequence, uint8_t* data) { if(universe<startUniverse||universe>lastUniverse) return;

// read universe and put into the right part of the display buffer for (int i = 0; i < length / 3; i++) { int led = i + (universe - startUniverse) (previousDataLength / 3); if (led < numLeds) leds[led] = CRGB(data[i 3], data[i 3 + 1], data[i 3 + 2]);

} previousDataLength = length; FastLED.show(); }

rstephan commented 3 years ago

Here are my questions/advices for you. (I am guessing, the ArtnetWifiFastLED-Example is used.)

I will try to replicate your setup, but this will take some time.

davidboon78 commented 3 years ago

Thanks for any help. If I can solve it myself ill let you know.