The Adafruit 16x8 LED Matrix Backpack Blue 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 of blue LEDs, controlled by the HT16K33 driver chip that communicates over I2C. It's perfect for displaying alphanumeric characters, simple icons, and animations. Common applications include wearable electronics, message boards, and custom clocks.
Pin | Description |
---|---|
GND | Ground connection |
VCC | Power supply (4.5V - 5.5V) |
SDA | I2C data line |
SCL | I2C clock line |
ADDR | Address selection pin (connect to GND or VCC to set I2C address) |
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
Adafruit_8x16matrix matrix = Adafruit_8x16matrix();
void setup() {
matrix.begin(0x70); // Initialize the display with its I2C address
matrix.setBrightness(10); // Set brightness level (0 is dim, 15 is bright)
}
void loop() {
matrix.clear(); // Clear the display buffer
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print("Hello"); // Print a message
matrix.writeDisplay(); // Update the display with the buffer content
delay(2000); // Wait for 2 seconds
}
setBrightness()
function to adjust the display brightness to a suitable level.writeDisplay()
after making changes to the display buffer to update the actual display.Q: Can I use this LED matrix with a 3.3V microcontroller? A: Yes, but ensure that the logic levels are compatible, and you may need level shifters for stable operation.
Q: How do I display custom characters or animations?
A: You can create custom bitmaps and use the drawBitmap()
function to display them. For animations, update the display buffer in a loop with a delay.
Q: How many of these LED matrices can I chain together? A: You can chain up to 8 matrices with unique I2C addresses on the same I2C bus.
For further assistance, consult the Adafruit support forums or the product's official documentation.