The Adafruit 8x16 LED Matrix FeatherWing - Blue is a versatile and compact display module that adds a bright, eye-catching LED array to your projects. With 128 individual blue LEDs arranged in an 8x16 grid, it is perfect for displaying simple graphics, scrolling text, and animations. This component is designed to interface seamlessly with the Adafruit Feather series of development boards, making it an excellent choice for portable and IoT applications.
Pin | Description |
---|---|
GND | Ground connection |
3V | 3.3V power supply |
SDA | I2C Data |
SCL | I2C Clock |
RST | Reset pin (optional use) |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_8x16matrix matrix = Adafruit_8x16matrix();
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 display
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print("Hello"); // Print a message
matrix.writeDisplay(); // Update the display with the message
delay(2000); // Wait for 2 seconds
matrix.scrollTextLeft(); // Scroll the text left
matrix.writeDisplay(); // Update the display after scrolling
delay(300); // Wait for 300 milliseconds
}
Note: This example assumes the use of an Adafruit Feather or a compatible board with the same I2C pinout. If using an Arduino UNO, you will need to connect SDA to A4 and SCL to A5, and include a level shifter if necessary due to the voltage difference.
Q: Can I use this LED matrix with other microcontrollers besides the Feather series?
A: Yes, the matrix uses I2C, which is a standard communication protocol. However, you may need level shifters for microcontrollers operating at different voltages.
Q: How do I change the I2C address?
A: The I2C address can be changed by soldering the address jumpers on the back of the PCB. Refer to the Adafruit documentation for the address mapping.
Q: Can I power the matrix from a battery?
A: Yes, as long as the battery can provide the necessary voltage and current. Be mindful of the power consumption when all LEDs are lit.
Q: How do I display custom graphics or animations?
A: Custom graphics and animations can be created using the Adafruit GFX library functions. You will need to define the patterns as bitmaps or use drawing functions provided by the library.