The Adafruit 16x8 LED Matrix Backpack Yellow-Green is a compact and versatile display module that allows users to add a bright, eye-catching display to their projects. This LED matrix has 16 columns and 8 rows, providing a total of 128 LEDs in a yellow-green color. It is designed for ease of use and can be controlled via I2C, making it an excellent choice for displaying numbers, letters, and simple graphics. Common applications include wearable electronics, status indicators, message boards, and time displays.
Pin | Description |
---|---|
GND | Ground connection |
VCC | Power supply (4.5V - 5.5V) |
SDA | I2C Data line |
SCL | I2C Clock line |
ADDR | Address selection (connect to GND or VCC to change address) |
Power Connections:
I2C Connections:
Address Selection:
To control the LED matrix, you can use the Adafruit LED Backpack library available through the Arduino Library Manager. Here is a simple example code to get started:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_8x16matrix matrix = Adafruit_8x16matrix();
void setup() {
matrix.begin(0x70); // Start the display at I2C address 0x70
matrix.setBrightness(15); // Set brightness to a medium level (0-15)
}
void loop() {
matrix.clear(); // Clear the display buffer
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print("Hello"); // Print "Hello" to the buffer
matrix.writeDisplay(); // Write the buffer to the display
delay(2000); // Wait for 2 seconds
matrix.clear(); // Clear the display for the next message
matrix.setCursor(0, 0); // Reset cursor position
matrix.print("World"); // Print "World" to the buffer
matrix.writeDisplay(); // Update the display
delay(2000); // Wait for 2 seconds
}
Q: Can I daisy-chain multiple LED matrices? A: Yes, you can connect multiple matrices by setting unique I2C addresses for each and wiring them in parallel.
Q: How do I change the I2C address? A: Solder or otherwise connect the ADDR pin to GND or VCC and modify the address in your code accordingly.
Q: Can I display images on the matrix? A: The matrix is best suited for displaying text and simple graphics due to its resolution.
For further assistance, consult the Adafruit support forums or the detailed product guides available on the Adafruit website.