Arduino
int led=4; // aqui hacemos esto para llamarlos led en ves d epin4
void setup() {
pinMode(led,OUTPUT); // AQUI SE HACE EL LED DE SALIDA
// put your setup code here, to run once:
}
void loop() {
digitalWrite(led,HIGH); // AQUI DESIMOS QUE SE ENCIENDA EL LED
delay(10000); // aqui decimos cuanto tiempo pasa prendido el led
digitalWrite(led,LOW) ;// PARA QUE SE APAGUE
delay(10000); // tiempo en apagado
// put your main code here, to run repeatedly:
}
No hay comentarios.:
Publicar un comentario