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.
Dependents: PreHeater PreHeater-Rev2
Fork of QEI by
Revision 1:e13e5767d46e, committed 2015-07-03
- Comitter:
- kazu_zamasu
- Date:
- Fri Jul 03 11:42:13 2015 +0000
- Parent:
- 0:5c2ad81551aa
- Commit message:
- add to IntruptIn mode
Changed in this revision
| QEI.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/QEI.cpp Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.cpp Fri Jul 03 11:42:13 2015 +0000
@@ -240,7 +240,8 @@
int change = 0;
int chanA = channelA_.read();
int chanB = channelB_.read();
-
+ channelA_.mode(PullDown);
+ channelB_.mode(PullDown);
//2-bit state.
currState_ = (chanA << 1) | (chanB);
