#include <LedControl.h>
int DIN = 2;
int CS = 3;
int CLK = 4;
const int num_matr = 1;
LedControl lc = LedControl (DIN, CLK, CS, num_matr);
byte neutral[8] = {
B00111100,
B01000010,
B10000001,
B10100101,
B10000001,
B10111101,
B01000010,
B00111100,
};
void setup() {
lc.shutdown (0, false);
lc.setIntensity (0, 8);
lc.clearDisplay (0);
}
void loop() {
displayPattern (neutral);
}
void displayPattern (byte pattern[8]) {
for (int row = 0; row < 8; row++) {
lc.setRow (0, row, pattern[row]);
}
}