Preparing code for rev 2

This commit is contained in:
2023-07-12 23:01:11 +03:00
parent a05ae09226
commit cf31a7574a
6 changed files with 2715 additions and 1 deletions

View File

@ -5,7 +5,7 @@
#include <FlexiTimer2.h>
#include <EEPROM.h>
#define VERSION "0.1a"
#define VERSION "REV2 PREP"
#define SCREEN_ADDRESS 0x3C
@ -15,6 +15,7 @@
#define MINBPM 20
#define SCREEN_TIMEOUT 300000 //Turn display off after 5 min
///* Rev 1 Config
#define ENC_BTN_PIN 14
#define ENC_D1_PIN 17
#define ENC_D2_PIN 4
@ -25,6 +26,22 @@
#define ANALOGUE_INPUT_2_PIN A1
const int outsPins[6] = {6, 11, 7, 10, 8, 9};
//*/
/* Rev 2 Config
#define ENC_BTN_PIN 14
#define ENC_D1_PIN 17
#define ENC_D2_PIN 4
#define START_STOP_BTN_PIN 5
#define SHIFT_BTN_PIN 12
#define EXT_INPUT_PIN 2 //needs to be an interrupt pin
#define ANALOGUE_INPUT_1_PIN A7
#define ANALOGUE_INPUT_2_PIN A6
const int outsPins[6] = {7, 8, 10, 6, 9, 11};
*/
const int clockModes[17] = {-24, -12, -8, -6, -4, -3, -2, 1, 2, 3, 4, 5, 6, 7, 8, 16, 32}; //positive - divide, negative - multiply, 0 - off
@ -135,6 +152,7 @@ void setup() {
//Splash screen
display.clearDisplay();
//display.setRotation(2); //rotate display for rev 2
display.drawBitmap(48, 18, splash_logo, 33, 39, 1);
display.setCursor(90,1);
display.setTextSize(1);

View File

@ -0,0 +1 @@
:00000001FF

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff