Remove hardcoded CRGB buffer and use the SEGMENT.leds directly. Should also now mean this code handles multiple segments, but untested

This commit is contained in:
Will Tatam
2023-05-26 13:40:17 +01:00
parent f92b635126
commit ab024b5e17

View File

@@ -65,10 +65,10 @@ class ANIMartRIXMod:public ANIMartRIX {
public:
void initEffect() {
if (SEGENV.call == 0) {
bool serpentine = false;
init(SEGMENT.virtualWidth(), SEGMENT.virtualHeight(), SEGMENT.leds, serpentine);
bool serpentine = false;
SEGMENT.setUpLeds();
SEGMENT.fill(BLACK);
init(SEGMENT.virtualWidth(), SEGMENT.virtualHeight(), SEGMENT.leds, serpentine);
}
}
void output() {