The Adafruit 16x8 LED Matrix Backpack White is a versatile and compact LED matrix display module that provides a resolution of 16x8, meaning it has 16 columns and 8 rows of white LEDs. This component is ideal for displaying monochrome graphics, text, and simple animations. It is commonly used in wearables, status indicators, and small message displays. The included backpack module simplifies the connection to microcontrollers, such as the Arduino UNO, by using the I2C interface, which minimizes the number of pins required for operation.
Pin | Description |
---|---|
GND | Ground connection |
VCC | Power supply (5V input) |
SDA | I2C data line |
SCL | I2C clock line |
ADDR | I2C address selection (connect to GND or VCC) |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_8x16matrix matrix = Adafruit_8x16matrix();
void setup() {
matrix.begin(0x70); // Initialize the display with its I2C address
matrix.setBrightness(10); // Set brightness to a medium level
}
void loop() {
matrix.clear(); // Clear the display buffer
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print("Hello"); // Print "Hello" on the display
matrix.writeDisplay(); // Update the display with the buffer content
delay(2000); // Wait for 2 seconds
}
Ensure that the Adafruit GFX and LED Backpack libraries are installed in your Arduino IDE before uploading this code to your Arduino UNO.
i2cdetect
utility or similar tools to confirm the device's I2C address.Q: Can I daisy-chain multiple LED matrix backpacks? A: Yes, you can connect multiple backpacks in series by connecting the SDA and SCL lines together and providing separate power if needed. Remember to set unique I2C addresses for each backpack.
Q: How do I change the brightness of the display?
A: Use the setBrightness()
function in your code to adjust the brightness level from 0 (off) to 15 (maximum brightness).
Q: What is the maximum number of characters that can be displayed? A: The number of characters depends on the font size. With the default 5x7 font, you can display up to two characters at a time.
For further assistance, consult the Adafruit support forums or the detailed product guide available on the Adafruit website.