n

Dependencies:   QEI TextLCD mbed

Revision:
0:23ecb0de1978
Child:
1:7b43d1823567
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Nov 01 16:11:59 2013 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "QEI.h"
+#include "TextLCD.h"
+
+TextLCD lcd(PTC10, PTC11, PTC12, PTC13, PTC16, PTC17); // rs, e, d4-d7TextLCD lcd(PTC10, PTC11, PTC12, PTC13, PTC16, PTC17); // rs, e, d4-d7
+QEI wheel(PTE4, PTE3, NC, 624);
+ 
+int main() {
+       
+    while(1){
+        
+        lcd.printf("Pulses is: %i\n", wheel.getPulses());
+        wait(0.11);
+        
+    }
+ 
+}