encoder, HIDscope and movement

Dependencies:   Encoder HIDScope mbed

Fork of MovementandEncoder by Arun Raveenthiran

Revision:
0:0b39982f89a9
Child:
1:bac42065f837
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 09 13:44:08 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "HIDScope.h"
+#include "encoder.h"
+
+Encoder motor1(D13,D12);
+PwmOut led(D9);
+HIDScope scope(1);
+
+int main()
+{
+    
+    while (true) {
+        scope.set(0,motor1.getPosition());
+        led.write(motor1.getPosition()/100.0);
+        scope.send();
+        wait(0.2f);
+    }
+}
\ No newline at end of file