Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created June 5, 2018 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/db6d11e1ff88aaff443f301beb580c0d to your computer and use it in GitHub Desktop.
Save HectorTorres/db6d11e1ff88aaff443f301beb580c0d to your computer and use it in GitHub Desktop.
matriz 1
#include "LedControlMS.h"
#define MAX 1 // Cuantas matrices se usarán
LedControl led=LedControl(8,10,9, MAX); // Creamos una instancia de LedControl
void setup()
{
for (int x=0; x< MAX ; x++)
{
led.shutdown(x,false); // Activar las matrices
led.setIntensity(x,8); // Se ajusta el brillo de los LED´s como se desee (0-15)
led.clearDisplay(x); // Se borra todo
}
}
void loop()
{
led.writeString(0," HeTPro "); //texto que se mostrara en la matriz
delay(1000); //se espera 1 segundo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment