/*
Blink Onboard LED with Push-Button
*/
int pushButton = 8;
int LED = 4;
void setup() {
// make the pushbutton's pin an input:
pinMode(pushButton, INPUT_PULLUP); //configure pin as input with pullup enabled
pinMode(LED, OUTPUT); //configure pin as output
}
void loop() {
// read the input pin:
int buttonState = digitalRead(pushButton);
digitalWrite(LED, ((buttonState))); //turn len on when switch pressed
delay(5); // delay in between reads for stability
}