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