![](/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:
- 25:874675516927
- Parent:
- 18:97eeb2686a6a
- Child:
- 27:5eb5ec295ab2
File content as of revision 25:874675516927:
#include "buttons.h" #include "mbed.h" #include "config.h" #include "actuators.h" // functions for reading all the buttons and switches AnalogIn pot1(pot1Pin); void checkSwitches(){ // read motor enable switch // read pump enable switch // read servo potmeter position // read x speed potmeter position motorSetSpeed1 = pot1.read(); // read y speed potmeter position // read killswitches }