Permalink
Browse files

Se añade proyecto luces ritmicas

  • Loading branch information...
DevOscarFA committed Mar 23, 2015
1 parent 49f2e91 commit f88fe683bc0f758ece47638b7a24df28f39fcfcf
Showing with 42 additions and 0 deletions.
  1. +42 −0 luces_ritmicas/luces_ritmicas.ino
@@ -0,0 +1,42 @@
/*Luces ritmicas
*Copyright: codigoelectronica.com
* Author: Oscar Fernandez
* License: MIT
*/
void setup() {
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(3, HIGH);
delay(1000);
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(5, HIGH);
delay(1000);
digitalWrite(6, HIGH);
delay(1000);
digitalWrite(7, HIGH);
delay(1000);
digitalWrite(2, LOW);
delay(1000);
digitalWrite(3, LOW);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
digitalWrite(5, LOW);
delay(1000);
digitalWrite(6, LOW);
delay(1000);
digitalWrite(7, LOW);
delay(1000);
}

0 comments on commit f88fe68

Please sign in to comment.