move delays to invidiual styles

This commit is contained in:
Felix Pankratz 2024-12-28 16:26:14 +01:00
parent e8c734af83
commit b3026052c2
6 changed files with 8 additions and 4 deletions

View File

@ -44,4 +44,5 @@ void draw_congress(MatrixPanel_I2S_DMA *matrix, enum Mode mode) {
matrix->drawFastVLine(63, 0, PANEL_HEIGHT, grid_color);
delay(10);
}
delay(10);
}

View File

@ -23,4 +23,5 @@ void draw_cyber(MatrixPanel_I2S_DMA *matrix, Mode mode) {
if (offset == 59) {
offset = 0;
}
delay(25);
}

View File

@ -88,5 +88,5 @@ void draw_flame(MatrixPanel_I2S_DMA *matrix, enum Mode mode) {
matrix->drawPixel(p % PANEL_WIDTH, p / PANEL_WIDTH, flame_palette[framebuffer[p]]);
}
do_fire();
delay(10);
}

View File

@ -43,7 +43,7 @@ void setup(){
matrix = new MatrixPanel_I2S_DMA(mxconfig);
matrix->begin();
matrix->setBrightness8(255);
matrix->setBrightness8(128);
matrix->fillScreenRGB888(0, 0, 0);
matrix->setTextWrap(false);
matrix->setFont(&Pilowlava_Regular8pt7b);
@ -52,7 +52,7 @@ void setup(){
void loop() {
matrix ->flipDMABuffer();
matrix->clearScreen();
delay(25);
//delay(25);
if (millis() - last_switch > CYCLE_TIME_MS) {
// next style

View File

@ -70,7 +70,7 @@ void draw_rain(MatrixPanel_I2S_DMA *matrix, Mode mode) {
raindrops[r].x,
0 - random(4),
random(20, 28),
random(0, 55),
random(10, 55),
millis()
});
raindrops.erase(raindrops.begin() + r);
@ -111,4 +111,5 @@ void draw_rain(MatrixPanel_I2S_DMA *matrix, Mode mode) {
}
r++;
}
//delay(25);
}

View File

@ -53,4 +53,5 @@ void draw_supercomputer(MatrixPanel_I2S_DMA *matrix, Mode mode) {
}
}
rainbow_offset++;
delay(25);
}