Code for the buttons of Base, Cart and Arm combined with LED

Dependencies:   MODSERIAL mbed Motordriver

Fork of mbr_2016_hw_2_ex_2 by Martijn Grootens

Revision:
4:e62a2df0a5b5
Parent:
3:3a671d01bcb8
diff -r 3a671d01bcb8 -r e62a2df0a5b5 main.cpp
--- a/main.cpp	Wed Oct 19 13:13:13 2016 +0000
+++ b/main.cpp	Wed Oct 19 14:03:19 2016 +0000
@@ -35,8 +35,8 @@
 int sign; //prevents throwing the motor from full foward to full reverse and stuff melting.
 
 //Motor
-Motor A(D6, D7, D7, Brakeable); // pwm, fwd, rev, brake                 rechts
-Motor B(D5, D4, D4, Brakeable); // pwm, fwd, rev, brake                 links
+Motor A(D6, D7, D7, Brakeable); // pwm, fwd, rev, brake                 (right)
+Motor B(D5, D4, D4, Brakeable); // pwm, fwd, rev, brake                 (left)
 
 
 
@@ -149,7 +149,7 @@
     InterruptIn btn_arm(D3);
     btn_arm.fall(&SetValue3);
 
-    InterruptIn btn_arm(D4);
+    InterruptIn btn_claw(D4);
     btn_claw.fall(&SetValue4);
 
     while (true);