The Adafruit 1.2 Inch 8x8 LED Matrix Backpack Yellow is a compact and versatile electronic component that simplifies the process of driving an 8x8 LED matrix. This backpack integrates all the necessary circuitry to control each LED in the matrix and communicates via I2C, making it an ideal choice for projects where space is at a premium and ease of use is a priority. Common applications include creating digital signage, gaming displays, and adding visual output to various electronic projects.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (4.5V - 5.5V) |
3 | SDA | I2C Data line |
4 | SCL | I2C Clock line |
5 | ADDR | Address selection (connect to GND or VCC to change 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 the I2C address
Wire.begin(); // Join the I2C bus as master
}
void loop() {
matrix.clear(); // Clear the matrix display
matrix.drawPixel(0, 0, LED_ON); // Turn on a single LED at (0,0)
matrix.writeDisplay(); // Write the changes to the display
delay(500); // Wait for half a second
matrix.clear(); // Clear the display again
matrix.writeDisplay(); // Write the changes to the display
delay(500); // Wait for half a second
}
Q: Can I use this LED matrix with a 3.3V system? A: While the matrix is designed for 4.5V - 5.5V, it may work at 3.3V with reduced brightness. However, proper functionality is not guaranteed at this voltage.
Q: How do I change the I2C address? A: The I2C address can be changed by soldering the ADDR pin to either GND or VCC. Refer to the datasheet for the address mapping table.
Q: Can I control individual LEDs?
A: Yes, individual LEDs can be controlled using the drawPixel
function in the provided library.
For further assistance, consult the Adafruit support forums or the product datasheet.