used for a project

Files at this revision

API Documentation at this revision

Comitter:
sas638
Date:
Mon Mar 14 15:54:10 2022 +0000
Parent:
0:5c2ad81551aa
Commit message:
lmao

Changed in this revision

QEI.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5c2ad81551aa -r 6f2c18570954 QEI.cpp
--- a/QEI.cpp	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.cpp	Mon Mar 14 15:54:10 2022 +0000
@@ -151,17 +151,17 @@
     //X2 encoding uses interrupts on only channel A.
     //X4 encoding uses interrupts on      channel A,
     //and on channel B.
-    channelA_.rise(this, &QEI::encode);
-    channelA_.fall(this, &QEI::encode);
+    channelA_.rise({this, &QEI::encode});
+    channelA_.fall({this, &QEI::encode});
 
     //If we're using X4 encoding, then attach interrupts to channel B too.
     if (encoding == X4_ENCODING) {
-        channelB_.rise(this, &QEI::encode);
-        channelB_.fall(this, &QEI::encode);
+        channelB_.rise({this, &QEI::encode});
+        channelB_.fall({this, &QEI::encode});
     }
     //Index is optional.
     if (index !=  NC) {
-        index_.rise(this, &QEI::index);
+        index_.rise({this, &QEI::index});
     }
 
 }