Changed long-press time, added encoder reverse settings. memory is tight, needs testing. also removed everything related to hardware
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
#include <avr/wdt.h>
|
||||
#include <NeoHWSerial.h>
|
||||
|
||||
const char version[5] = "V:1.1";
|
||||
const char version[5] = "1.1.1";
|
||||
|
||||
#define SCREEN_ADDRESS 0x3C
|
||||
|
||||
@ -27,6 +27,7 @@ const char version[5] = "V:1.1";
|
||||
const byte outsPins[6] = { 7, 8, 10, 6, 9, 11 };
|
||||
const byte clockOutPin = 3;
|
||||
bool rotateScreen = false;
|
||||
bool reverseEnc = false;
|
||||
//
|
||||
|
||||
/* Rev 1 Config
|
||||
@ -588,6 +589,8 @@ void saveState() {
|
||||
EEPROM.put(addr, rotateScreen);
|
||||
addr = addr + sizeof(rotateScreen);
|
||||
EEPROM.put(addr, extClockPPQN);
|
||||
addr = addr + sizeof(extClockPPQN);
|
||||
EEPROM.put(addr, reverseEnc);
|
||||
}
|
||||
|
||||
void loadState() {
|
||||
@ -643,6 +646,8 @@ void loadState() {
|
||||
EEPROM.get(addr, rotateScreen);
|
||||
addr = addr + sizeof(rotateScreen);
|
||||
EEPROM.get(addr, extClockPPQN);
|
||||
addr = addr + sizeof(extClockPPQN);
|
||||
EEPROM.get(addr, reverseEnc);
|
||||
} else {
|
||||
//calibrateCVs();
|
||||
saveState();
|
||||
|
||||
Reference in New Issue
Block a user