Simulacion del Proyecto
PROGRAMACION
int led = 13;
int boton = 7;
void setup() {
pinMode(13, OUTPUT);
pinMode(7, INPUT);
}
void loop() {
digitalWrite(led, HIGH );
led=digitalRead(7);
if
(led==1)
{
digitalWrite(13,LOW);
delay(100);
digitalWrite(13,HIGH);
delay(100);
}