The Adafruit Seven-Segment LED Backpack 1.2 Inch Digits Green is a user-friendly display module designed for numeric output visualization. It features four 1.2-inch tall green seven-segment LEDs, which are bright, clear, and visible from a distance. The integrated I2C backpack reduces the number of necessary pins to control the display, making it perfect for projects with limited GPIO availability. Common applications include clocks, counters, and readouts for sensors.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (4.5V - 5.5V) |
3 | SDA | I2C Data line |
4 | SCL | I2C Clock line |
To control the display with an Arduino UNO, you will need to use the Adafruit LED Backpack library. Install the library through the Arduino Library Manager or download it from the Adafruit GitHub repository.
#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 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);
}
Q: Can I use this display with a 3.3V system? A: While the display operates at 4.5V - 5.5V, many 3.3V microcontrollers can interface with it without level shifting. However, the brightness may be reduced.
Q: How do I change the I2C address? A: Solder the address jumpers on the back of the display to configure the address between 0x70 and 0x77.
Q: Can the display show characters other than numbers? A: The display is primarily designed for numeric output, but it can show a limited set of characters and symbols.
For further assistance, consult the Adafruit support forums or the product's FAQ page.