The Adafruit 7 Segment FeatherWing - White is an electronic display module that features a seven-segment LED configuration with bright white digits. This component is designed to be compatible with the Feather ecosystem, allowing for easy stacking and use with various Feather boards. It is commonly used for displaying numerical data such as time, temperature, counters, and other simple alphanumeric characters in DIY projects, wearables, and portable devices.
Pin | Description |
---|---|
GND | Ground connection |
3V | 3.3V power supply |
SDA | I2C data line |
SCL | I2C clock line |
RST | Reset pin (optional) |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_7segment matrix = Adafruit_7segment();
void setup() {
matrix.begin(0x70); // Initialize the display with its I2C address
}
void loop() {
matrix.print(1234, DEC); // Display the number 1234
matrix.writeDisplay(); // Send the data to the display
delay(500); // Wait for half a second
// Display a hexadecimal number
matrix.print(0xBEEF, HEX);
matrix.writeDisplay();
delay(500);
}
Q: Can I use this display with boards other than Feather? A: Yes, as long as the board supports I2C communication and operates within the voltage range.
Q: How can I control multiple displays at once? A: Use an I2C multiplexer to communicate with multiple displays that have the same fixed I2C address.
Q: Is it possible to display letters as well as numbers? A: The display can show some basic alphanumeric characters that resemble numbers (e.g., 'A' can be displayed as '4').
Q: Can I adjust the brightness of the display? A: Yes, the Adafruit LED Backpack library provides functions to adjust the brightness programmatically.