sábado, 14 de marzo de 2015

En clase estamos utilizando arduino para hacer proyectos. Aqui os dejo un video y un codigo.



else {    // El botón está presionado
    digitalWrite(3, LOW); 
    digitalWrite(4, LOW);  
    digitalWrite(5, HIGH); 

    // wait for a quarter second before changing the light
    delay(250);

    digitalWrite(4, HIGH); // turn the red LED on pin 4 on
    digitalWrite(5, LOW);  // turn the red LED on pin 5 off

    // wait for a quarter second before changing the light
    delay(250);
  }
}   //vuelta al principio del bucle loop

No hay comentarios:

Publicar un comentario