File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void loop() {
47
47
int curr_rotary = encoder.getPosition ();
48
48
RotaryEncoder::Direction direction = encoder.getDirection ();
49
49
// read switch
50
- bool curr_button = ! digitalRead (PIN_ENCODER_SWITCH);
50
+ bool curr_button = digitalRead (PIN_ENCODER_SWITCH);
51
51
52
52
if (direction != RotaryEncoder::Direction::NOROTATION) {
53
53
Serial.print (" Encoder value: " );
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void loop() {
47
47
int curr_rotary = encoder.getPosition ();
48
48
RotaryEncoder::Direction direction = encoder.getDirection ();
49
49
// read switch
50
- bool curr_button = ! digitalRead (PIN_ENCODER_SWITCH);
50
+ bool curr_button = digitalRead (PIN_ENCODER_SWITCH);
51
51
52
52
if (direction != RotaryEncoder::Direction::NOROTATION) {
53
53
Serial.print (" Encoder value: " );
You can’t perform that action at this time.
0 commit comments