//MAX7219 - using Led Control library to light all LEDs one by one
#include <LedControl.h>
int DIN = 11; //this pin is DataIn
int CS = 7; //this is the LOAD pin
int CLK = 13; //this is the CLOCK pin
LedControl eightByEight = LedControl(DIN, CLK, CS,0);
void setup() {
eightByEight.shutdown(0,false);
eightByEight.setIntensity(0,0);
eightByEight.clearDisplay(0);
}
//i is row number, j is column number (0-7)
void loop() {
for(int j=0;j<8;j++){
for(int i=0;i<8;i++){
eightByEight.setLed(0,i,j,true);
delay(100);
eightByEight.setLed(0,i,j,false);
}
}
}