Class mRotaryEncoder for mechanical incremental rotary encoders with pushbuttons. Use debouncing and callback-functions for rotation and pressing of button. This version is for old mbed. New version for mbed-os see https://os.mbed.com/users/charly/code/mRotaryEncoder-os/
Dependents: SimplePIDBot FinalProgram VS1053Player SPK-DVIMXR ... more
Diff: mRotaryEncoder.h
- Revision:
- 6:854c349157b0
- Parent:
- 5:75ddffaf3721
- Child:
- 7:ec80fd9c0c08
--- a/mRotaryEncoder.h Wed Feb 09 20:18:34 2011 +0000 +++ b/mRotaryEncoder.h Wed Mar 11 21:08:31 2015 +0000 @@ -115,7 +115,7 @@ */ void attachROT(T* tptr, void (T::*mptr)(void)) { if ((mptr != NULL) && (tptr != NULL)) { - rotISR.attach(tptr, mptr); + rotIsr.attach(tptr, mptr); } }