#include "head.h"
void setup() {
init_program();
}
void loop() {
volatile long i;
char row;
// Correct the letter "A" pattern if necessary
char letter_A[8] = {
0b00000000, // Row 0 (empty row for spacing)
0b00111000, // Row 1
0b01000100, // Row 2
0b01000100, // Row 3
0b01000100, // Row 4
0b11101110, // Row 5
0b00000000, // Row 6
0b00000000 // Row 7 (bottom row)
};
// Display character "A" on the 8x8 LED matrix
for(row = 7; row >= 0; row--) {
outrow(~(1 << row)); // Activate row (low active, row 0 at the top)
outcol(letter_A[row]); // Set columns according to the pattern for "A"
for(i = 0; i < 1000; i++); // Delay to make LEDs visible for a short time
outcol(0); // Turn off all columns after the delay
}
// Optional: Delay before looping again
for(i = 0; i < 1000; i++); // Delay
}