Version is now defined in the beginning of the file
This commit is contained in:
@ -5,13 +5,15 @@
|
|||||||
#include <FlexiTimer2.h>
|
#include <FlexiTimer2.h>
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
|
|
||||||
|
#define VERSION "0.1a"
|
||||||
|
|
||||||
#define SCREEN_ADDRESS 0x3C
|
#define SCREEN_ADDRESS 0x3C
|
||||||
|
|
||||||
#define PPQN 24
|
#define PPQN 24
|
||||||
#define PULSE_LENGTH 12 //ms (with 12 ms you can't get higher than 208bpm)
|
#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 MAXBPM 200 //250 at 24ppqn with 5ms pulse will be 50/50 square wave
|
||||||
#define MINBPM 20
|
#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_BTN_PIN 14
|
||||||
#define ENC_D1_PIN 17
|
#define ENC_D1_PIN 17
|
||||||
@ -137,7 +139,8 @@ void setup() {
|
|||||||
display.setCursor(90,1);
|
display.setCursor(90,1);
|
||||||
display.setTextSize(1);
|
display.setTextSize(1);
|
||||||
display.setTextColor(SSD1306_WHITE);
|
display.setTextColor(SSD1306_WHITE);
|
||||||
display.println(F("V:0.1a")); //Version
|
display.print(F("V:"));
|
||||||
|
display.print(F(VERSION));
|
||||||
display.display();
|
display.display();
|
||||||
delay(800);
|
delay(800);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user