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:
17:872fcf85116d
Parent:
14:0c0d1bfd94ea
Child:
18:97eeb2686a6a

File content as of revision 17:872fcf85116d:

#include "buttons.h"
#include "mbed.h"
#include "config.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
    
    }