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:
44:a947bc232d84
Parent:
42:d36d216457c4
Child:
54:c14c3bc48b8a
--- a/buttons.cpp	Thu Oct 08 14:05:19 2015 +0200
+++ b/buttons.cpp	Thu Oct 08 14:28:42 2015 +0200
@@ -39,7 +39,7 @@
 	}else{
 		button1Pressed = false;
 	}
-	if(button2.read() != 1){
+	if(button2.read() == 0){
 		if(button2Pressed != true){
 			actuatorState++;
 			if(actuatorState==3){