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