const int buttonApin = 13; // the number of the pushbutton pin
const int buttonBpin = 12;
const int led1Pin = 5; // the number of the LED pin
const int led2Pin = 4; //clicker input leds mode1/2
const int led3Pin = 6; //mode leds
const int led4Pin = 7;
int range = 5; //mouse increment location value
// variables will change:
void setup() {
Serial.begin(9600);
// initialize the LED Modes pin as an output:
pinMode(led1Pin, OUTPUT);
pinMode(led2Pin, OUTPUT);
// initialize the LED click pin as output mode
pinMode(led3Pin, OUTPUT);
pinMode(led4Pin, OUTPUT);
// initialize the click pushbutton pin as an input:
pinMode(buttonApin, INPUT_PULLUP);
//initialize the mode switch pushbutton pin as output
pinMode(buttonBpin, INPUT_PULLUP);
}
void loop() {
static int mode = 0;
if(digitalRead(buttonBpin)==LOW){
Serial.println(i);
delay(300); // to prevent holds on button B from registering
if(i==0){
}
}
}