puruappu

Dependents:   2019NHK_A_sensor

Revision:
1:3fd8c0ee6540
Parent:
0:5c2ad81551aa
--- 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;