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