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:
14:0c0d1bfd94ea
Parent:
12:61759f94c07a
Child:
17:872fcf85116d

File content as of revision 14:0c0d1bfd94ea:

#include "buttons.h"
#include "mbed.h"

// 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
    
    }