Skip to content

Instantly share code, notes, and snippets.

@sabas1080
Created May 7, 2015 22:03
Show Gist options
  • Select an option

  • Save sabas1080/ab5d491aad807d0cdaf2 to your computer and use it in GitHub Desktop.

Select an option

Save sabas1080/ab5d491aad807d0cdaf2 to your computer and use it in GitHub Desktop.
Test para matriz de leds 1588abeg-5
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