#define LED_PIN 8
#define BUTTON_PIN 7
void setup() {
// Set pin modes
pinMode(LED_PIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT);
}
void loop() {
// Check if button is on
if (digitalRead(BUTTON_PIN) == HIGH) {

// Turn on the led
digitalWrite(LED_PIN, HIGH);
}
else {
// Turn off the led
digitalWrite(LED_PIN, LOW);
}
}
$abcdeabcde151015202530354045505560fghijfghij