Make encoder volatile again
This commit is contained in:
1 parent
3f3a93a440
commit
0f867c2248
1 file changed
+2
-2
@@ -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