Make encoder volatile again
This commit is contained in:
@@ -37,8 +37,8 @@ void openDrawer(uint8_t index)
|
||||
const int encoderPinA = A1;
|
||||
const int encoderPinB = A2;
|
||||
const int stepsPerClick = 500;
|
||||
long encoderPostion = 0;
|
||||
uint8_t lastState;
|
||||
volatile long encoderPostion = 0;
|
||||
volatile uint8_t lastState;
|
||||
long lastClickPosition = 0;
|
||||
uint8_t selectedIndex = 0;
|
||||
void setupEncoder()
|
||||
|
||||
Reference in New Issue
Block a user