♾ perfect loop
This commit is contained in:
parent
4290e2dea9
commit
7463cb31f0
@ -66,7 +66,7 @@ enum DisplayStyle {
|
|||||||
Congress
|
Congress
|
||||||
};
|
};
|
||||||
|
|
||||||
Mode mode = Stealth;
|
Mode mode = HighVis;
|
||||||
DisplayStyle style = Congress;
|
DisplayStyle style = Congress;
|
||||||
|
|
||||||
void setup(){
|
void setup(){
|
||||||
@ -163,7 +163,7 @@ void draw_rain() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int running_text_pos = 7;
|
int running_text_pos = 21;
|
||||||
|
|
||||||
void draw_congress() {
|
void draw_congress() {
|
||||||
matrix->fillScreenRGB888(15, 0, 10);
|
matrix->fillScreenRGB888(15, 0, 10);
|
||||||
@ -192,13 +192,19 @@ void draw_congress() {
|
|||||||
matrix->print("Panki");
|
matrix->print("Panki");
|
||||||
} else if (mode == HighVis) {
|
} else if (mode == HighVis) {
|
||||||
matrix->setCursor(running_text_pos, 21);
|
matrix->setCursor(running_text_pos, 21);
|
||||||
String message = "38C3 - Panki - DECT 3389 - ALL YOUR BASE ARE BELONG TO US";
|
String message = "38C3 - Panki - DECT - 3389 - 38C3";
|
||||||
matrix->print(message);
|
matrix->print(message);
|
||||||
|
if ((running_text_pos == 7) or (running_text_pos == - 70) or (running_text_pos == -146 ) or (running_text_pos == -216) ) {
|
||||||
|
delay(2000);
|
||||||
|
}
|
||||||
running_text_pos -= 1;
|
running_text_pos -= 1;
|
||||||
if (running_text_pos < -936) { // (0 - (13 * message.length()))) {
|
|
||||||
running_text_pos = 63;
|
if (running_text_pos < - 286 ) { // (0 - (13 * message.length()))) {
|
||||||
|
running_text_pos = 7;
|
||||||
};
|
};
|
||||||
delay(75);
|
matrix->drawFastVLine(0, 0, PANEL_HEIGHT, grid_color);
|
||||||
|
matrix->drawFastVLine(63, 0, PANEL_HEIGHT, grid_color);
|
||||||
|
delay(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user