The Adafruit Red 15x7 CharliePlex FeatherWing is an innovative LED matrix display that utilizes the Charlieplexing technique to control multiple LEDs using a minimal number of GPIO pins. This seven-segment display FeatherWing features 15 red LED segments, enabling users to display numeric digits, letters, and some special characters. It is designed to be compatible with the Feather ecosystem, making it a versatile addition to any project requiring a compact and bright display.
Pin Number | Description |
---|---|
1 | GND (Ground) |
2 | VCC (Power Supply, 3.3V to 5V) |
3 | SDA (I2C Data) |
4 | SCL (I2C Clock) |
5 | RST (Reset, optional) |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_IS31FL3731.h>
// Initialize display driver for the 15x7 CharliePlex FeatherWing
Adafruit_IS31FL3731_Wing wing = Adafruit_IS31FL3731_Wing();
void setup() {
Wire.begin(); // Start I2C
wing.begin(); // Initialize the display
}
void loop() {
wing.clear(); // Clear the display buffer
// Display a pattern or character
wing.drawChar(0, 0, 'A', LED_ON, LED_OFF, 1);
// Write the buffer to the display
wing.display();
delay(1000); // Wait for a second
}
#include
statements include the necessary libraries for controlling the CharliePlex FeatherWing.Adafruit_IS31FL3731_Wing wing
creates an instance of the display driver.Wire.begin()
initializes the I2C communication.wing.begin()
initializes the display with the default I2C address.wing.clear()
clears the display buffer to prepare for new data.wing.drawChar()
is used to draw a character on the display at the specified position.wing.display()
sends the buffer data to the display to update the visual output.delay(1000)
pauses the program for a specified duration (in milliseconds).Q: Can I chain multiple CharliePlex FeatherWings together? A: Yes, you can chain multiple displays together, but you will need to ensure that each has a unique I2C address and that your power supply can handle the increased current draw.
Q: How do I change the brightness of the display? A: The brightness can be controlled programmatically using the display driver's functions for setting the PWM values of the LEDs.
Q: Is it possible to display custom characters or images? A: Yes, the display is capable of showing custom characters or images by setting individual LED segments. You can use the Adafruit GFX library to create and display custom graphics.