#include < LedControl.h >
/*
Pin 12 is connected to the DataIn of the MAX7219
Pin 11 is connected to the CLK (clock) of the MAX7219
Pin 10 is connected to the LOAD(/CS) of the MAX7219
We have only a single MAX7219 connected.
*/
LedControl lc = LedControl(12, 11, 10, 1);
byte kr[8] = { 0x00, 0x18, 0x00, 0x0, 0x0, 0x0, 0x18, 0};
void setup() {
lc.shutdown(0, false);
lc.setIntensity(0, 15);
lc.clearDisplay(0);
}
void loop() {
for (int i = 0; i < 8; i++) {
lc.setRow(0, i, kr[i]);
}