#include "LedControl.h"
LedControl lc = LedControl(12, 11, 10, 1); // Initialize the MAX7219 with appropriate pins
const byte smileyFace[8] = {
B00111100,
B01000010,
B10100101,
B10000001,
B10100101,
B10011001,
B01000010,
B00111100
};
void setup() {
lc.shutdown(0, false); // Wake up the MAX7219
lc.setIntensity(0, 8); // Set the brightness (0-15)
lc.clearDisplay(0); // Clear the display
// Display the smiley face animation
displaySmileyFace();
}
void loop() {
// No animation needed for a static smiley face
}
void displaySmileyFace() {
for (int row = 0; row < 8; row++) {
lc.setRow(0, row, smileyFace[row]);
}
}