//press the blue button to turn on the LED
//Release the blue button to turn off the LED
#define BUTTON_PIN 4
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);
}
// the loop function runs over and over again forever
void loop() {
int value = digitalRead((BUTTON_PIN));
if (value == HIGH) {
digitalWrite(LED_BUILTIN, LOW);
}
if (value == LOW) {
digitalWrite(LED_BUILTIN, HIGH);
}
}