The Adafruit 8x16 LED Matrix FeatherWing in Yellow-Green is a compact and versatile display module designed for use with the Adafruit Feather series of development boards. This LED matrix provides a grid of 8x16 yellow-green LEDs, allowing for the creation of eye-catching displays including scrolling text, animations, and simple graphics. It is an ideal choice for wearable projects, portable instruments, and any application where a small yet readable display is required.
Pin | Function | Description |
---|---|---|
GND | Ground | Connect to system ground |
VCC | Power | 3.3V to 5V power supply |
SDA | Data | I2C data line |
SCL | Clock | I2C clock line |
RST | Reset | Optional reset pin (not required for basic operation) |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_8x16matrix matrix = Adafruit_8x16matrix();
void setup() {
matrix.begin(0x70); // Initialize the LED matrix with its I2C address
matrix.setBrightness(15); // Set brightness to a medium level (0-15)
}
void loop() {
matrix.clear(); // Clear the matrix display
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print(F("Hello")); // Print "Hello" at the current cursor position
matrix.writeDisplay(); // Update the matrix display with new data
delay(500); // Wait for half a second
matrix.scrollDisplayLeft(); // Scroll the display left
matrix.writeDisplay(); // Update the display after scrolling
delay(500); // Wait for half a second
}
Note: This example assumes that the Adafruit LED Backpack library is installed and that the I2C address of the LED matrix is set to the default (0x70). Adjust the I2C address in the code if it has been changed.
Remember to keep code comments concise and within the 80 character line length limit.