Version is now defined in the beginning of the file

This commit is contained in:
--global
2023-05-21 21:49:10 +03:00
parent 41c393c4be
commit f7e5b21be3

View File

@ -5,13 +5,15 @@
#include <FlexiTimer2.h>
#include <EEPROM.h>
#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);