puruappu

Dependents:   2019NHK_A_sensor

Files at this revision

API Documentation at this revision

Comitter:
highfieldsnj
Date:
Mon Aug 26 08:43:39 2019 +0000
Parent:
0:5c2ad81551aa
Commit message:
puruappu

Changed in this revision

QEI.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5c2ad81551aa -r 3fd8c0ee6540 QEI.cpp
--- a/QEI.cpp	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.cpp	Mon Aug 26 08:43:39 2019 +0000
@@ -134,6 +134,9 @@
          int pulsesPerRev,
          Encoding encoding) : channelA_(channelA), channelB_(channelB),
         index_(index) {
+            
+    channelA_.mode(PullUp);
+    channelB_.mode(PullUp);
 
     pulses_       = 0;
     revolutions_  = 0;