#include <mechButton.h>
#include <timeObj.h>
#define RIGHT_BTN_PIN 2 // Pin we'll hook the button to.
#define LEFT_BTN_PIN 4 // Pin we'll hook the button to.
#define OTHER_BTN_PIN 3 // Pin we'll hook the button to.
#define RED_PIN 13 // Usual pin number for built in LED.
#define GREEN_PIN 12 // Gren to show state.
mechButton rightBtn(RIGHT_BTN_PIN);
mechButton leftBtn(LEFT_BTN_PIN);
mechButton otherBtn(OTHER_BTN_PIN);
enum states { };
// Your standard sketch setup()
void setup() {
pinMode(RED_PIN,OUTPUT); // Set up the red LED pin for output.
pinMode(GREEN_PIN,OUTPUT); // Set up green LED pin for output.
rightBtn.setCallback(rBtnCallback); // Set up callback.
leftBtn.setCallback(lBtnCallback); // Set up callback.
otherBtn.setCallback(oBtnCallback); // Set up callback.
}
void rBtnCallback(void) {
if (!rightBtn.getState()) {
}
}
void lBtnCallback(void) {
if (!leftBtn.getState()) {
}
}
void oBtnCallback(void) {
if (!otherBtn.getState()) {
}
}
// Your standard sketch loop()
void loop() {
idle();
}