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

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

buttons.cpp

Committer:
annesteenbeek
Date:
2015-10-05
Revision:
5:73bfad06b775
Parent:
2:95ba9f6f0128
Child:
12:61759f94c07a

File content as of revision 5:73bfad06b775:

// functions for reading all the buttons and switches 
void enablePins(){
	// set input/output pins
	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
    
    }