#define LED 2
#define boton 3
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
pinMode(boton,INPUT );
}
void loop() {
if(digitalRead(boton)==0){
digitalWrite(LED, HIGH);
}
else{
digitalWrite(LED, LOW);
}
// put your main code here, to run repeatedly:
delay(1); // this speeds up the simulation
}