no change

Dependencies:   QEI mbed

Files at this revision

API Documentation at this revision

Comitter:
mx300
Date:
Fri Oct 27 08:01:41 2017 +0000
Commit message:
no change

Changed in this revision

QEI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 58458d6434bb QEI.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QEI.lib	Fri Oct 27 08:01:41 2017 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mx300/code/QEI/#e94c3730bf6e
diff -r 000000000000 -r 58458d6434bb main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 27 08:01:41 2017 +0000
@@ -0,0 +1,16 @@
+#include "QEI.h"
+ 
+Serial pc(USBTX, USBRX);
+//Use X4 encoding.
+//QEI wheel(p29, p30, NC, 624, QEI::X4_ENCODING);
+//Use X2 encoding by default.
+QEI wheel (D5, D6, NC, 624);
+ 
+int main() {
+ 
+    while(1){
+        wait(0.1);
+        pc.printf("Pulses is: %i\n", wheel.getPulses());
+    }
+ 
+}
\ No newline at end of file
diff -r 000000000000 -r 58458d6434bb mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 27 08:01:41 2017 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/b484a57bc302
\ No newline at end of file