The Adafruit 8x16 LED Matrix FeatherWing - Yellow is a versatile and compact LED matrix display designed for integration with the Adafruit Feather series of development boards. This expansion board features a grid of 8x16 individually addressable yellow LEDs, allowing for a wide range of visual output possibilities. It is commonly used for creating scrolling text displays, simple animations, and other visual indicators in portable projects.
Pin | Description |
---|---|
GND | Ground connection |
3V | 3.3V power supply |
SDA | I2C data line |
SCL | I2C clock line |
ADDR | I2C address selection (optional) |
RST | Reset pin (optional) |
#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 the brightness to a medium level
matrix.clear(); // Clear the matrix display
}
void loop() {
matrix.clear(); // Clear the matrix display
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print(F("Hello")); // Print a message to the matrix
matrix.writeDisplay(); // Update the display with the new data
delay(2000); // Wait for 2 seconds
matrix.scrollLeft(); // Scroll the message to the left
matrix.writeDisplay(); // Update the display with the new data
delay(200); // Wait for 200 milliseconds
}
i2cdetect
utility or similar tools to confirm the I2C address of the LED matrix.Q: Can I use this LED matrix with boards other than Feather? A: Yes, as long as the board supports I2C communication and operates within the voltage range.
Q: How do I chain multiple LED matrices together? A: You can chain multiple matrices by connecting their I2C lines in parallel and setting unique I2C addresses for each matrix.
Q: Can I display images on the LED matrix? A: Yes, you can display bitmap images, but they need to be formatted for the 8x16 resolution and converted into the appropriate format for the Adafruit GFX library.
Q: Is it possible to use this LED matrix with a 5V system? A: The matrix is designed to be 5V tolerant on the I2C lines, but it is recommended to use a level shifter for reliable operation.