#include <LedControl.h>
int din=10;
int cs=9;
int clk=8;
LedControl lc(din, cs, clk, 0);
void setup() {
// put your setup code here, to run once:
pinMode(din, OUTPUT);
pinMode(cs, OUTPUT);
pinMode(clk, OUTPUT);
lc.shutdown(0,false);
lc.setIntensity(0,8);
lc.clearDisplay(0);
}
void loop() {
// put your main code here, to run repeatedly:
lc.setLed(0,2,2,true);
delay(1000);
}