control for robotic arm that can play chess using a granular gripper

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

Revision:
5:73bfad06b775
Parent:
2:95ba9f6f0128
Child:
12:61759f94c07a
diff -r 80e2280058ed -r 73bfad06b775 buttons.cpp
--- a/buttons.cpp	Mon Oct 05 16:15:25 2015 +0200
+++ b/buttons.cpp	Mon Oct 05 17:35:02 2015 +0200
@@ -1,6 +1,7 @@
 // functions for reading all the buttons and switches 
 void enablePins(){
 	// set input/output pins
+	AnalogIn pot1(pot1Pin);
 }
 
 
@@ -12,6 +13,7 @@
     // read servo potmeter position
     
     // read x speed potmeter position
+    motorSetSpeed1 = pot1.read();
     
     // read y speed potmeter position