![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
Diff: buttons.cpp
- Revision:
- 41:d5c3055a7bc7
- Parent:
- 40:0d88aa25a57d
- Child:
- 42:d36d216457c4
diff -r 0d88aa25a57d -r d5c3055a7bc7 buttons.cpp --- a/buttons.cpp Thu Oct 08 00:53:33 2015 +0200 +++ b/buttons.cpp Thu Oct 08 13:03:22 2015 +0200 @@ -15,8 +15,8 @@ DigitalOut greenLed(LED_GREEN); DigitalOut blueLed(LED_BLUE); -AnalogIn button1(button1Pin); -AnalogIn button2(button2Pin); +DigitalIn button1(button1Pin); +DigitalIn button2(button2Pin); float button1Pressed = false; float button2Pressed = false; int actuatorState = 0;