The Adafruit Mini 8x8 LED Matrix Backpack Red is a versatile and compact electronic component designed to control an 8x8 matrix of red LEDs. This module simplifies the process of driving multiple LEDs by integrating a driver chip that communicates via I2C interface. It is ideal for creating displays for simple graphics, text, and animations.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (4.5V to 5.5V) |
3 | SDA | I2C Data line |
4 | SCL | I2C Clock line |
5 | ADDR | Address selection pin |
6 | RST | Reset pin (optional use) |
#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 the brightness to a medium level
}
void loop() {
matrix.clear(); // Clear the matrix display
matrix.drawPixel(4, 4, LED_ON); // Turn on a single LED at (x=4, y=4)
matrix.writeDisplay(); // Update the display with the changes
delay(500); // Wait for half a second
matrix.clear(); // Clear the display again
matrix.writeDisplay(); // Update the display
delay(500); // Wait for half a second
}
Q: Can I use this matrix with a 3.3V system? A: While the matrix is rated for 4.5V to 5.5V, it may work at 3.3V with reduced brightness. However, this is not officially supported and may lead to unpredictable behavior.
Q: How many matrices can I chain together? A: You can chain up to 8 matrices together, as there are 8 selectable I2C addresses from 0x70 to 0x77.
Q: Can I control individual LED brightness? A: No, the brightness control affects the entire matrix. Individual LED brightness control is not supported.
This documentation provides a comprehensive guide to using the Adafruit Mini 8x8 LED Matrix Backpack Red. For further assistance or advanced projects, consult the Adafruit forums or technical support.