Fork of mRotaryEncoder for mdeb-os. uses newer version of PinDetect. Testprogram: https://os.mbed.com/users/charly/code/mRotaryEncoder_HelloWorld-os/
Dependents: mRotaryEncoder_HelloWorld-os TMC2209-Test2
Diff: mRotaryEncoder.h
- Revision:
- 3:39c2fc4482be
- Parent:
- 2:f99ac9745a2c
- Child:
- 5:75ddffaf3721
--- a/mRotaryEncoder.h Tue Feb 01 19:43:46 2011 +0000
+++ b/mRotaryEncoder.h Tue Feb 01 19:54:35 2011 +0000
@@ -78,7 +78,7 @@
* @param fptr Pointer to callback-function
*/
void attachSW(void (*fptr)(void)) {
- m_pinSW->attach_asserted(fptr);
+ m_pinSW->attach_deasserted(fptr);
}
template<typename T>
@@ -90,7 +90,7 @@
*/
void attachSW(T* tptr, void (T::*mptr)(void)) {
if ((mptr != NULL) && (tptr != NULL)) {
- m_pinSW->fall(tptr, mptr);
+ m_pinSW->attach_deasserted(tptr, mptr);
}
}