qei

Dependencies:   mbed QEI_pmw

Files at this revision

API Documentation at this revision

Comitter:
20172573063
Date:
Wed Jul 01 00:57:09 2020 +0000
Commit message:
qei

Changed in this revision

QEI_pmw.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QEI_pmw.lib	Wed Jul 01 00:57:09 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/pwensing/code/QEI_pmw/#58a3c9c9e956
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jul 01 00:57:09 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "QEI.h"
+
+Serial pc(USBTX, USBRX);
+
+DigitalOut gpo(D0);
+DigitalOut led(LED_RED);
+QEI wheel (A0, PTD5, NC, 624);
+
+int main()
+{
+   while(1){
+        wait(0.1);
+        pc.printf("Pulses is: %i\n", wheel.getPulses());
+    }
+    
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jul 01 00:57:09 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file