Push up existing wokwi changes
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user