Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 11:20ad86601057, committed 2019-03-29
- Comitter:
- BETZtechnik
- Date:
- Fri Mar 29 06:13:48 2019 +0000
- Parent:
- 10:2502b829d452
- Commit message:
- Ready for release ;
Changed in this revision
mRotaryEncoder.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/mRotaryEncoder.cpp Fri Feb 26 20:18:57 2016 +0000 +++ b/mRotaryEncoder.cpp Fri Mar 29 06:13:48 2019 +0000 @@ -51,10 +51,10 @@ //pinA still low? if (*m_pinA == 0) { if (*m_pinB == 1) { - m_position++; + m_position--; rotCWIsr.call(); } else { - m_position--; + m_position++; rotCCWIsr.call(); } rotIsr.call(); // call the isr for rotation @@ -66,10 +66,10 @@ //pinA still high? if (*m_pinA == 1) { if (*m_pinB == 1) { - m_position--; + // m_position--; //PB to make it behave once per detent. rotCCWIsr.call(); } else { - m_position++; + // m_position++; //PB rotCWIsr.call(); } rotIsr.call(); // call the isr for rotation