change refresh time, display orientation and initial wait time
This commit is contained in:
parent
4ad8e72a11
commit
2494e91ea4
10
src/main.cpp
10
src/main.cpp
|
|
@ -6,13 +6,13 @@
|
|||
#include <WiFi.h>
|
||||
|
||||
// ===== 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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user