S3: increase MAX_LEDS
S3 (opi PSRAM) can handle 128x128 pixels on HUB75.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user