#include <LedControl.h>
int DIN = 12;//Data input
int CLK = 11;//Clock input
int CS = 10;//Chip Select
LedControl lc(DIN, CLK, CS,1);
byte B[8] ={
B00000000,
B00011110,
B00100010,
B00100010,
B00011110,
B00100010,
B00100010,
B00011110};
void setup()
{
// put your setup code here, to run once:
lc.shutdown(0, false);
lc.setIntensity(0, 8);
lc.clearDisplay(0);
}
void loop()
{
// put your main code here, to run repeatedly:
//lc.setLed(0,1,2,true);
// lc.setRow(0,0,0xFF);
// lc.setColumn(0,0,0xFF);
for (int i = 0; i <= 7; i++)
{
lc.setRow(0, i, B[i]);
}
}