S3: increase MAX_LEDS

S3 (opi PSRAM) can handle 128x128 pixels on HUB75.
This commit is contained in:
Frank
2024-10-14 17:37:37 +02:00
parent 11864326bf
commit d67ba8451a
4 changed files with 11 additions and 4 deletions

View File

@@ -1802,7 +1802,10 @@ void WS2812FX::finalizeInit(void)
for (uint8_t i=0; i<busses.getNumBusses(); i++) {
Bus *bus = busses.getBus(i);
if (bus == nullptr) continue;
if (bus->getStart() + bus->getLength() > MAX_LEDS) break;
if (bus->getStart() + bus->getLength() > MAX_LEDS) {
USER_PRINT("\nError: too many LEDs, max number is "); USER_PRINTLN(MAX_LEDS);
break;
}
//RGBW mode is enabled if at least one of the strips is RGBW
_hasWhiteChannel |= bus->hasWhite();
//refresh is required to remain off if at least one of the strips requires the refresh.