Quadrature encoder interface library. Change to IntruputIn pulldown mode.

Dependents:   PreHeater PreHeater-Rev2

Fork of QEI by Aaron Berk

Files at this revision

API Documentation at this revision

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
diff -r 5c2ad81551aa -r e13e5767d46e QEI.cpp
--- 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);