int buttonSet = 34;
int buttonReset = 35;
void setup() {
pinMode(34, INPUT);
pinMode(35, INPUT);
pinMode(14, OUTPUT);
Serial.begin(9600);
}
void loop() {
buttonSet=digitalRead(34);
buttonReset=digitalRead(35);
set();
reset ();
Serial.print("buttonReset = ");
Serial.print (buttonReset);
Serial.print ("buttonSet = ");
Serial.print (buttonSet);
Serial.print("\n");
}
void set () {
if (buttonSet == HIGH && buttonReset == LOW){
delay(20);
digitalWrite(14, HIGH);
}
}
void reset (){
if (buttonReset == HIGH){
delay(20);
digitalWrite(14, LOW);
}
}