diff --git a/src/main.cpp b/src/main.cpp index e8f8b5c..ea987a6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,13 +6,13 @@ #include // ===== Konstanten ===== -#define VERSION "v14_ESP32" +#define VERSION "v15_ESP32" #define WIDTH 96 #define HEIGHT 16 #define FPS 30 #define FRAME_TIME_MS (1000 / FPS) -#define DISPLAY_REFRESH_TIME 1700 +#define DISPLAY_REFRESH_TIME 1800 // ===== Event Types ===== enum GameEvent { @@ -231,6 +231,9 @@ void setup() { Serial.println("ESP-NOW ready to receive"); + //rotate the Canvas so it is displayed in the correct orientation on the FlipDotDisplay + canvas.setRotation(2); + Serial.println("Setup complete"); xEventQueue = xQueueCreate( 10, sizeof(GameEvent) ); @@ -323,7 +326,8 @@ void gameTask(void *) displayText("Init " VERSION, true); Serial.println("Init " VERSION); delayedState = STATE_INIT1; - delayTimestamp = currentTime + 3 * DISPLAY_REFRESH_TIME; + //wait long enough so the FlipDot-Power-Initialization animation is over + delayTimestamp = currentTime + 15 * DISPLAY_REFRESH_TIME; gameState = STATE_DELAY; break;