The Adafruit Mini 8x8 LED Matrix Backpack with Pure Green LEDs is a compact and versatile display module, perfect for adding a small but bright display to your projects. This component is commonly used in wearables, status indicators, simple animations, and small message displays. The backpack simplifies the process of wiring and controlling the matrix by consolidating all necessary components onto a single board.
Pin | Description |
---|---|
VCC | Power supply (4.5V - 5.5V) |
GND | Ground connection |
SDA | I2C Data line |
SCL | I2C Clock line |
ADDR | Address selection (connect to GND or VCC to set address) |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_8x8matrix matrix = Adafruit_8x8matrix();
void setup() {
matrix.begin(0x70); // Initialize the matrix with its I2C address
matrix.setBrightness(10); // Set brightness level (0 is dim, 15 is bright)
}
void loop() {
matrix.clear(); // Clear the matrix
matrix.drawPixel(4, 4, LED_ON); // Draw a single pixel
matrix.writeDisplay(); // Write the changes to the display
delay(500);
matrix.clear(); // Clear the matrix
matrix.writeDisplay(); // Write the changes to the display
delay(500);
}
Ensure that the Adafruit GFX library and Adafruit LED Backpack library are installed in your Arduino IDE before uploading this code to your Arduino UNO.
i2cdetect
utility to confirm the matrix's I2C address if using a Raspberry Pi or similar device.Q: Can I use this matrix with a 3.3V microcontroller? A: Yes, but ensure that the logic levels are compatible, and be aware that the LED brightness may be affected.
Q: How many matrices can I chain together? A: You can chain up to 8 matrices together, each with a unique I2C address.
Q: Can I display images or text on the matrix? A: Yes, the Adafruit GFX library provides functions for drawing shapes, text, and bitmaps.
For further assistance, consult the Adafruit support forums or the detailed product guide available on the Adafruit website.