EJERCICIO #1 ENCENDER Y APAGAR VARIOS LEDS CON UN PULSADOR

2 Pages • 27 Words • PDF • 118.9 KB
Uploaded at 2021-09-24 17:00

This document was submitted by our user and they confirm that they have the consent to share it. Assuming that you are writer or own the copyright of this document, report to us by using this DMCA report button.


int Rojo=13; int Verde=12; int Boton=4;

void setup() { pinMode(Rojo,OUTPUT); pinMode(Verde,OUTPUT); pinMode(Boton,INPUT);

}

void loop() { if(digitalRead(Boton)==LOW) { digitalWrite(Verde,HIGH); digitalWrite(Rojo,LOW);

} else { digitalWrite(Rojo,HIGH); digitalWrite(Verde,LOW); } }
EJERCICIO #1 ENCENDER Y APAGAR VARIOS LEDS CON UN PULSADOR

Related documents

2 Pages • 27 Words • PDF • 118.9 KB

239 Pages • 62,428 Words • PDF • 1.2 MB

8 Pages • 3,267 Words • PDF • 121.5 KB

4 Pages • 477 Words • PDF • 95.2 KB

16 Pages • 3,179 Words • PDF • 529.8 KB

1 Pages • PDF • 346.7 KB

14 Pages • 6,539 Words • PDF • 88.1 KB

3 Pages • 32 Words • PDF • 815.2 KB

15 Pages • 1,039 Words • PDF • 1.1 MB

124 Pages • 21,895 Words • PDF • 3.8 MB