move delays to invidiual styles
This commit is contained in:
parent
e8c734af83
commit
b3026052c2
@ -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);
|
||||
}
|
||||
|
@ -23,4 +23,5 @@ void draw_cyber(MatrixPanel_I2S_DMA *matrix, Mode mode) {
|
||||
if (offset == 59) {
|
||||
offset = 0;
|
||||
}
|
||||
delay(25);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -53,4 +53,5 @@ void draw_supercomputer(MatrixPanel_I2S_DMA *matrix, Mode mode) {
|
||||
}
|
||||
}
|
||||
rainbow_offset++;
|
||||
delay(25);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user