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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user