Push up existing wokwi changes

This commit is contained in:
2025-12-20 12:54:56 -05:00
parent 1ed3c99141
commit ef3eded08d
4 changed files with 27 additions and 4 deletions

View File

@@ -52,9 +52,15 @@ LEDHAL2D* hal2D;
MatrixAnimation* animation;
int animationCode = 8;
int animationCode = 0;
void setup() {
Serial.begin(115200);
while(!Serial) {}
Serial.println(F("STARTUP!"));
CLEDController* controller = &FastLED.addLeds<NEOPIXEL, 6>(leds, NUMLEDS);
controller->setCorrection(TypicalLEDStrip);
@@ -69,7 +75,7 @@ void setup() {
} else if(animationCode == 3) {
//Doesn't work, causing heap corruption
animation = new ColorRandomizerMatrix(hal2D, "Color Randomizer Matrix",
40, true, 6, rainbow, ColorRandomizerType::HORIZONTAL_COLORRANDOMIZER);
200, false, 6, rainbow, ColorRandomizerType::HORIZONTAL_COLORRANDOMIZER);
} else if(animationCode == 4) {
animation = new CycleLightMatrix(hal2D, "Cycle Light Matrix", 100, rainbow, 6, CycleLightType::HORIZONTAL_CYCLELIGHT);
} else if(animationCode == 5) {