Encoder hidscope

Dependencies:   Encoder HIDScope mbed

Revision:
0:ff69004c5cb8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 13 12:18:31 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);
+    }
+}