We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4acf451 + 1c3ee01 commit af19ceaCopy full SHA for af19cea
libraries/RotaryEncoder/SwRotaryEncoder.cpp
@@ -120,14 +120,14 @@ void SwRotaryEncoder::clearAbs(void)
120
121
void SwRotaryEncoder::_irq_handler(void)
122
{
123
- uint32_t val = NRF_GPIO->IN;
124
- uint8_t bita = bitRead(val, _pina);
+ uint8_t bita = digitalRead(_pina);
+ uint8_t bitb = digitalRead(_pinb);
125
126
if ( bita != _a_last)
127
128
int32_t step;
129
130
- if ( bita != bitRead(val, _pinb) )
+ if ( bita != bitb )
131
132
step = 1;
133
}else
0 commit comments