The Adafruit 7 Segment FeatherWing - Red is a versatile and user-friendly electronic component designed to display numerical information in a clear and readable format. This component features a bright red 4-digit, 7-segment LED display, which can show numbers, some letters, and a few special characters. It is commonly used in digital clocks, timers, counters, and other projects where numerical data needs to be presented to the user.
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_LEDBackpack.h>
#include <Adafruit_GFX.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(); // Refresh the display with new data
delay(5000); // Wait for 5 seconds
// Display a hexadecimal number
matrix.print(0xBEEF, HEX);
matrix.writeDisplay();
delay(5000);
}
Note: This example assumes that the Adafruit LED Backpack library is installed in your Arduino IDE.
i2cdetect
utility or similar tools to confirm the device's address on the I2C bus.Q: Can I use this display with a 5V microcontroller? A: Yes, the display can be used with a 5V microcontroller, but ensure that the logic levels for I2C communication are compatible.
Q: How do I change the brightness of the display?
A: The brightness can be adjusted using the setBrightness(uint8_t b)
function provided by the Adafruit LED Backpack library.
Q: Can I display letters as well as numbers? A: Yes, the display can show some letters and special characters that can be formed with 7 segments.
Q: How many of these displays can I chain together? A: You can chain up to 8 displays by setting unique I2C addresses using the solder jumpers on the back of each FeatherWing.
For further assistance, refer to the Adafruit support forums or the product's official documentation.