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);
|
matrix->drawFastVLine(63, 0, PANEL_HEIGHT, grid_color);
|
||||||
delay(10);
|
delay(10);
|
||||||
}
|
}
|
||||||
|
delay(10);
|
||||||
}
|
}
|
||||||
|
@ -23,4 +23,5 @@ void draw_cyber(MatrixPanel_I2S_DMA *matrix, Mode mode) {
|
|||||||
if (offset == 59) {
|
if (offset == 59) {
|
||||||
offset = 0;
|
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]]);
|
matrix->drawPixel(p % PANEL_WIDTH, p / PANEL_WIDTH, flame_palette[framebuffer[p]]);
|
||||||
}
|
}
|
||||||
do_fire();
|
do_fire();
|
||||||
|
delay(10);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ void setup(){
|
|||||||
|
|
||||||
matrix = new MatrixPanel_I2S_DMA(mxconfig);
|
matrix = new MatrixPanel_I2S_DMA(mxconfig);
|
||||||
matrix->begin();
|
matrix->begin();
|
||||||
matrix->setBrightness8(255);
|
matrix->setBrightness8(128);
|
||||||
matrix->fillScreenRGB888(0, 0, 0);
|
matrix->fillScreenRGB888(0, 0, 0);
|
||||||
matrix->setTextWrap(false);
|
matrix->setTextWrap(false);
|
||||||
matrix->setFont(&Pilowlava_Regular8pt7b);
|
matrix->setFont(&Pilowlava_Regular8pt7b);
|
||||||
@ -52,7 +52,7 @@ void setup(){
|
|||||||
void loop() {
|
void loop() {
|
||||||
matrix ->flipDMABuffer();
|
matrix ->flipDMABuffer();
|
||||||
matrix->clearScreen();
|
matrix->clearScreen();
|
||||||
delay(25);
|
//delay(25);
|
||||||
|
|
||||||
if (millis() - last_switch > CYCLE_TIME_MS) {
|
if (millis() - last_switch > CYCLE_TIME_MS) {
|
||||||
// next style
|
// next style
|
||||||
|
@ -70,7 +70,7 @@ void draw_rain(MatrixPanel_I2S_DMA *matrix, Mode mode) {
|
|||||||
raindrops[r].x,
|
raindrops[r].x,
|
||||||
0 - random(4),
|
0 - random(4),
|
||||||
random(20, 28),
|
random(20, 28),
|
||||||
random(0, 55),
|
random(10, 55),
|
||||||
millis()
|
millis()
|
||||||
});
|
});
|
||||||
raindrops.erase(raindrops.begin() + r);
|
raindrops.erase(raindrops.begin() + r);
|
||||||
@ -111,4 +111,5 @@ void draw_rain(MatrixPanel_I2S_DMA *matrix, Mode mode) {
|
|||||||
}
|
}
|
||||||
r++;
|
r++;
|
||||||
}
|
}
|
||||||
|
//delay(25);
|
||||||
}
|
}
|
||||||
|
@ -53,4 +53,5 @@ void draw_supercomputer(MatrixPanel_I2S_DMA *matrix, Mode mode) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
rainbow_offset++;
|
rainbow_offset++;
|
||||||
|
delay(25);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user