From f7e5b21be33d302e257ba331516865b282025572 Mon Sep 17 00:00:00 2001 From: --global <--global> Date: Sun, 21 May 2023 21:49:10 +0300 Subject: [PATCH] Version is now defined in the beginning of the file --- software/GToE/GToE.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/software/GToE/GToE.ino b/software/GToE/GToE.ino index 71589ad..f765d19 100644 --- a/software/GToE/GToE.ino +++ b/software/GToE/GToE.ino @@ -5,13 +5,15 @@ #include #include +#define VERSION "0.1a" + #define SCREEN_ADDRESS 0x3C #define PPQN 24 #define PULSE_LENGTH 12 //ms (with 12 ms you can't get higher than 208bpm) #define MAXBPM 200 //250 at 24ppqn with 5ms pulse will be 50/50 square wave #define MINBPM 20 -#define SCREEN_TIMEOUT 120000 //Turn display off after 2 min +#define SCREEN_TIMEOUT 300000 //Turn display off after 5 min #define ENC_BTN_PIN 14 #define ENC_D1_PIN 17 @@ -137,7 +139,8 @@ void setup() { display.setCursor(90,1); display.setTextSize(1); display.setTextColor(SSD1306_WHITE); - display.println(F("V:0.1a")); //Version + display.print(F("V:")); + display.print(F(VERSION)); display.display(); delay(800);