int LED =5;
int push = 10;
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
pinMode(push, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int val = digitalRead(push);
if(val==HIGH){
digitalWrite(LED, LOW);
} else {
digitalWrite(LED, HIGH);
}
}