The Adafruit Charlieplex 9x16 Yellow is an innovative LED matrix display that leverages the charlieplexing technique to control a grid of 144 yellow LEDs using a minimal number of microcontroller pins. This compact and versatile display is ideal for creating eye-catching visual displays, and it's perfect for projects that require a small footprint without sacrificing brightness or functionality. Common applications include wearable electronics, informational displays, and custom user interfaces.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (3.0V - 5.5V) |
3 | SDA | I2C Data line |
4 | SCL | I2C Clock line |
5 | ADDR | I2C Address selection (connect to GND or VCC) |
#include <Wire.h>
#include <Adafruit_IS31FL3731.h>
// Create an instance of the display
Adafruit_IS31FL3731 matrix = Adafruit_IS31FL3731();
void setup() {
Wire.begin(); // Initialize I2C
matrix.begin(); // Initialize the display
}
void loop() {
// Clear the display buffer
matrix.clear();
// Draw a simple pattern
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 16; j++) {
matrix.drawPixel(i, j, (i + j) % 2 ? 255 : 0);
}
}
// Display the buffer on the LEDs
matrix.display();
delay(500);
}
Q: Can I daisy-chain multiple Charlieplex 9x16 displays? A: Yes, you can connect multiple displays in series by ensuring each one has a unique I2C address.
Q: How do I control individual LEDs in the matrix?
A: Individual LEDs can be controlled using the drawPixel
function provided by the Adafruit_IS31FL3731 library, specifying the column, row, and brightness level.
Q: What is the maximum number of displays I can control with one microcontroller? A: The maximum number of displays is limited by the number of unique I2C addresses available. Check the datasheet for the IS31FL3731 driver chip for more details.
Q: Can I use this display with a 3.3V microcontroller? A: Yes, the display can operate at voltages as low as 3.0V, making it compatible with 3.3V microcontrollers.