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: public:
void initEffect() { void initEffect() {
if (SEGENV.call == 0) { if (SEGENV.call == 0) {
bool serpentine = false; bool serpentine = false;
init(SEGMENT.virtualWidth(), SEGMENT.virtualHeight(), SEGMENT.leds, serpentine);
SEGMENT.setUpLeds(); SEGMENT.setUpLeds();
SEGMENT.fill(BLACK); SEGMENT.fill(BLACK);
init(SEGMENT.virtualWidth(), SEGMENT.virtualHeight(), SEGMENT.leds, serpentine);
} }
} }
void output() { void output() {