const int buttonOn = 2;
const int buttonOff = 3;
const int ledPin = 6;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonOn, INPUT);
pinMode(buttonOff, INPUT);
// put your setup code here, to run once:
}
void loop() {
if (digitalRead(buttonOn) == LOW) {
digitalWrite(ledPin, LOW);
}
if (digitalRead(buttonOff) == LOW){
digitalWrite(ledPin, HIGH);
}
}