my qei test

Dependencies:   mbed QEI

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Mon Oct 25 11:40:10 2021 +0000
Parent:
2:07d72c351053
Commit message:
make

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 07d72c351053 -r 2fa96acedf7b main.cpp
--- a/main.cpp	Mon Oct 18 11:49:01 2021 +0000
+++ b/main.cpp	Mon Oct 25 11:40:10 2021 +0000
@@ -4,10 +4,10 @@
 //DigitalIn b(USER_BUTTON);
 //Use X4 encoding.
 QEI wheel[] = {
-    QEI(PB_7,PB_6,NC,100,QEI::X4_ENCODING),
+    QEI(PA_1,PA_0,NC,100,QEI::X4_ENCODING),
     //QEI(PA_6,PA_7,NC,100,QEI::X4_ENCODING), 使えなかった
     QEI(PA_9,PA_8,NC,100,QEI::X4_ENCODING),
-    QEI(PA_1,PA_0,NC,100,QEI::X4_ENCODING)
+    QEI(PB_7,PB_6,NC,100,QEI::X4_ENCODING)
 };
 
 int main() {