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:
12:61759f94c07a
Parent:
5:73bfad06b775
Child:
14:0c0d1bfd94ea

File content as of revision 12:61759f94c07a:

// functions for reading all the buttons and switches 
void setPins(){
    // 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
    
    }