Fork of original mRotaryEncoder library supporting more types of encoders (ones with full rise and fall cycle per one rotations).
Diff: mRotaryEncoder.cpp
- Revision:
- 3:39c2fc4482be
- Parent:
- 2:f99ac9745a2c
- Child:
- 5:75ddffaf3721
diff -r f99ac9745a2c -r 39c2fc4482be mRotaryEncoder.cpp --- a/mRotaryEncoder.cpp Tue Feb 01 19:43:46 2011 +0000 +++ b/mRotaryEncoder.cpp Tue Feb 01 19:54:35 2011 +0000 @@ -18,7 +18,7 @@ m_pinSW = new PinDetect(pinSW); // interrupt on press switch m_pinSW->mode(pullMode); - m_pinSW->setSampleFrequency(); // Defaults to 20ms. + m_pinSW->setSampleFrequency(debounceTime_us); // Start timers an Defaults debounce time. m_position = 0;