Rotary encoder library. Add: void setInterval(timestamp_t t) for Nucleo F401RE
Fork of RotaryEncoder by
Diff: RotaryEncoder.cpp
- Revision:
- 3:6736c3bf48c9
- Parent:
- 1:8000eddbf4aa
- Child:
- 5:60c44df48016
--- a/RotaryEncoder.cpp Tue May 24 22:32:25 2016 +0000 +++ b/RotaryEncoder.cpp Wed May 25 01:08:22 2016 +0000 @@ -52,7 +52,7 @@ * Internal tick function. */ void RotaryEncoder::func_ticker() { - static uint8_t code; + //static uint8_t code; code = (code << 2) + (((pin1.read() << 1) | (pin2.read() << 0)) & 3); code &= 15;