#include <LedControl.h>
LedControl lc(12,11,10,1);
int row=4, col=2;
byte a[5]={B01111110, B10010000, B10010000, B01111110};
void setup() {
lc.shutdown(0,false); //關閉省電模式
lc.setIntensity(0,0); //設定亮度為0(介於0~15之間)
lc.clearDisplay(0); //清除螢幕
}
void loop() {
for(int j=0; j<5; j++){
lc.setColumn(0,7-j,a[j]);
}
delay(1000);
lc.setLed(0,row,col,0);
delay(1000);
}