#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
// Define the matrix dimensions
#define MATRIX_WIDTH 32
#define MATRIX_HEIGHT 8
// Create an instance of Adafruit_LEDBackpack for 8x16 matrix
Adafruit_8x16minimatrix matrix = Adafruit_8x16minimatrix();
void setup() {
// Initialize I2C communication
Wire.begin();
// Initialize matrix display
matrix.begin(0x70); // Pass in the I2C address (0x70 for Adafruit 8x16 LED Matrix FeatherWing)
matrix.setBrightness(2); // Set brightness level (0-15)
}
void loop() {
// Clear display
matrix.clear();
// Display character "H" at position (0,0)
matrix.setCursor(0, 0);
matrix.print('H');
// Update the display
matrix.writeDisplay();
// Wait for 1 second
delay(1000);
}