TecnoAstro

TECNOLOGÍA
Arduino
Proyectos con Arduino
Robótica cableada

Otros proyectos
Electrónica

Reciclaje
Proyecto (memoria) 
Tecnología Industrial
Enlaces tecnología
Informática
Enlaces informática

ASTRONOMÍA
Observaciones
Prácticas
Enlaces astronomía

FOTOGRAFÍA

EVENTOS DE CIENCIA (PROYECTOS)
Máquinas en Acción
Microrrobots y ...
Taller de Galileo ...
Tecnología Basura

Comentarios y sugerencias

 

/*
Secuencia de semáforo tres veces y finaliza el programa
 */
 
int led_verde= 11;
int led_amarillo= 12;
int led_rojo= 13;

void setup() {                
 
  pinMode(led_verde, OUTPUT);
  pinMode(led_amarillo, OUTPUT);  
  pinMode(led_rojo, OUTPUT);
 
  for (int i=0; i<3; i++) {
   digitalWrite(led_verde, HIGH);      // turn the LED on (HIGH is the voltage level)
   delay(2000);                        // wait for 2 seconds
   digitalWrite(led_verde, LOW);       // turn the LED off by making the voltage LOW
   digitalWrite(led_amarillo, HIGH);   // turn the LED on (HIGH is the voltage level)
   delay(500);                         // wait for 0.5 seconds
   digitalWrite(led_amarillo, LOW);    // turn the LED off by making the voltage LOW
   digitalWrite(led_rojo, HIGH);       // turn the LED on (HIGH is the voltage level)
   delay(2000);                        // wait for 2 seconds
   digitalWrite(led_rojo, LOW);        // turn the LED off by making the voltage LOW
  }
}

void loop() {
}