The Adafruit 7 Segment FeatherWing in Blue is a versatile and visually appealing electronic component designed to extend the capabilities of Adafruit Feather boards. This add-on module features a bright blue 4-digit, 7-segment LED display, which is ideal for displaying numerical information and simple alphanumeric characters. Common applications include clocks, timers, counters, and readouts for sensors.
Pin | Description |
---|---|
GND | Ground connection |
3V | 3.3V power supply from Feather |
SDA | I2C data line |
SCL | I2C clock line |
RST | Reset pin (optional use) |
To use the 7 Segment FeatherWing with an Arduino UNO, you will need to use a base Feather board that is compatible with the Arduino IDE, such as the Adafruit Feather 32u4 or Feather M0.
Sketch
> Include Library
> Manage Libraries...
.#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); // Display a numeric value
matrix.writeDisplay(); // Refresh the display with the new data
delay(5000); // Wait for 5 seconds
// Display a hexadecimal number
matrix.print(0xBEEF, HEX);
matrix.writeDisplay();
delay(5000);
}
i2cdetect
utility or similar tools to scan for the correct I2C address of the display.Q: Can I use the 7 Segment FeatherWing with a 5V Feather board? A: Yes, the FeatherWing is compatible with both 3.3V and 5V Feather boards.
Q: How do I change the I2C address? A: Solder the address jumpers on the back of the FeatherWing to configure a different I2C address.
Q: Can I display letters on the 7 Segment FeatherWing? A: Yes, the display can show simple alphanumeric characters that fit within the 7-segment format.
For further assistance, consult the Adafruit support forums or the product's FAQ section on the Adafruit website.