Created
May 7, 2015 22:03
-
-
Save sabas1080/ab5d491aad807d0cdaf2 to your computer and use it in GitHub Desktop.
Test para matriz de leds 1588abeg-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() | |
{ | |
for (int j=2; j<19; j++) | |
pinMode(j, OUTPUT); | |
} | |
void loop() | |
{ | |
for (int j=2; j<10; j++) | |
{ | |
digitalWrite(j, HIGH); //Levantamos la columna | |
for (int k= 10 ; k<18 ; k++) | |
{ | |
digitalWrite(k, LOW); //Encendemos el punto | |
delay(250); | |
digitalWrite(k, HIGH); //Apagamos el punto | |
} | |
digitalWrite(j, LOW); //Bajamos la columna | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment