struct-rain #2

Merged
panki merged 8 commits from struct-rain into master 2024-12-08 15:16:40 +01:00
Showing only changes of commit 7463cb31f0 - Show all commits

View File

@ -66,7 +66,7 @@ enum DisplayStyle {
Congress
};
Mode mode = Stealth;
Mode mode = HighVis;
DisplayStyle style = Congress;
void setup(){
@ -163,7 +163,7 @@ void draw_rain() {
}
}
int running_text_pos = 7;
int running_text_pos = 21;
void draw_congress() {
matrix->fillScreenRGB888(15, 0, 10);
@ -192,13 +192,19 @@ void draw_congress() {
matrix->print("Panki");
} else if (mode == HighVis) {
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);
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;
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);
}
}