//Mario's Ideas
//MAX7219 - using Led Control library to display all leds one by one
#include <LedControl.h>
int DIN = 11;
int CS = 7;
int CLK = 13;
LedControl lc=LedControl(DIN, CLK, CS,0);
void setup() {
lc.shutdown(0,false);
lc.setIntensity(0,0);
lc.clearDisplay(0);
}
void loop() {
// for(int j=0;j<8;j++){
// for(int i=0;i<8;i++){
// lc.setLed(0,j,i,true);
// delay(100);
// lc.setLed(0,j,i,false);
// }
// }
byte a[8] = {0x3C,0x42,0xA5,0x81,0xA5,0x99,0x42,0x3C};
printByte(a);
delay(1000);
}
void printByte(byte character []) {
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}