encoder, HIDscope and movement

Dependencies:   Encoder HIDScope mbed

Fork of MovementandEncoder by Arun Raveenthiran

Revision:
1:bac42065f837
Parent:
0:0b39982f89a9
Child:
2:174885cd1665
--- a/main.cpp	Wed Sep 09 13:44:08 2015 +0000
+++ b/main.cpp	Wed Oct 07 13:18:35 2015 +0000
@@ -6,10 +6,16 @@
 PwmOut led(D9);
 HIDScope scope(1);
 
+DigitalOut motor_direction(D4);
+PwmOut motor_speed(D5);
+
 int main()
 {
-    
+    motor_direction = 1;
+    motor_speed = 0.5;
+ 
     while (true) {
+        
         scope.set(0,motor1.getPosition());
         led.write(motor1.getPosition()/100.0);
         scope.send();