#include <LedControl.h>
byte house[8]={
B00011000,
B00111100,
B01100110,
B11000011,
B01000010,
B01011010,
B01011010,
B01011010
};
// Initialize the LedControl library
// Parameters: DIN, CLK, CS, Number of devices (1 for single matrix)
LedControl lc = LedControl(11, 13, 10, 1);
void printByte(byte character [])
{
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}
void setup() {
// Initialize the first display
lc.shutdown(0, false); // Wake up the display
lc.setIntensity(0, 12); // Set brightness level (0-15)
lc.clearDisplay(0); // Clear the display
// Light up the top-left LED (Row 0, Column 0)
//lc.setLed(0, 0, 0, true); // Matrix 0, Row 0, Column 0, LED ON
printByte(house);
}
void loop() {
// Nothing in the loop
}