![](/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
buttons.cpp
- Committer:
- annesteenbeek
- Date:
- 2015-10-06
- Revision:
- 27:5eb5ec295ab2
- Parent:
- 25:874675516927
- Child:
- 30:a20f16bf8dda
File content as of revision 27:5eb5ec295ab2:
#include "buttons.h" #include "mbed.h" #include "config.h" #include "actuators.h" // functions for reading all the buttons and switches AnalogIn pot2(pot2Pin); void checkSwitches(){ // read motor enable switch // read pump enable switch // read servo potmeter position // read x speed potmeter position motorSetSpeed2 = pot2.read(); // read y speed potmeter position // read killswitches }