//Desenhando com a matriz de Led
/* Inclui a biblioteca LedControl. */
#include "LedControl.h"
LedControl lc = LedControl(8, 10, 9, 1);
int tempo = 500;
byte Letra_A []= {
0b00000000,
0b00000000,
0b00000000,
0b00111100,
0b00100100,
0b00111100,
0b00100100,
0b00100100
};
byte Letra_C[]={
0b00000000,
0b00000000,
0b00000000,
0b00111100,
0b00100000,
0b00100000,
0b00111100,
0b00000000
};
void setup() {
lc.shutdown(0, false);
lc.setIntensity(0, 10);
lc.clearDisplay(0);
}
void loop() {
mostra_Letra_A();
delay(tempo);
mostra_Letra_C();
delay(tempo);
}
void mostra_Letra_A()
{
for (int i = 0; i < 8; i++)
{
lc.setRow(0, i, Letra_A[i]);
}
}
void mostra_Letra_C()
{
for (int i = 0; i < 8; i++)
{
lc.setRow(0, i, [i]);
}
lc.setRow(0, i, Letra_C[i]);
}
}