

The Adafruit 0.56 inch 7-segment LED Backpack is a compact module designed to drive a 7-segment LED display. It simplifies the process of displaying numerical data by integrating an I2C interface, which reduces the number of pins required for connection. This module is ideal for applications where numerical data, such as sensor readings, time, or counters, needs to be displayed in a compact and efficient manner.








The Adafruit 0.56 inch 7-segment LED Backpack has 4 main pins for connection:
| Pin Name | Description | Notes |
|---|---|---|
| VIN | Power supply input (3.3V to 5V) | Connect to the 3.3V or 5V pin of your microcontroller. |
| GND | Ground | Connect to the ground pin of your microcontroller. |
| SDA | I2C data line | Connect to the SDA pin of your microcontroller. |
| SCL | I2C clock line | Connect to the SCL pin of your microcontroller. |
Wiring the Module:
VIN pin to the 3.3V or 5V power supply of your microcontroller.GND pin to the ground of your microcontroller.SDA pin to the I2C data line (e.g., A4 on Arduino UNO).SCL pin to the I2C clock line (e.g., A5 on Arduino UNO).Install Required Libraries:
Upload Example Code:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LED_Backpack.h>
// Create an instance of the 7-segment display
Adafruit_7segment display = Adafruit_7segment();
void setup() {
// Initialize the display
display.begin(0x70); // Default I2C address is 0x70
}
void loop() {
// Display a number (e.g., 1234)
display.print(1234); // Print the number to the display
display.writeDisplay(); // Update the display with the new data
delay(1000); // Wait for 1 second
// Clear the display
display.clear();
display.writeDisplay();
delay(500); // Wait for 0.5 seconds
}
0x70. If you need to use multiple displays, you can change the address by soldering the address jumpers on the back of the module.Display Not Lighting Up:
VIN and GND pins are properly connected to the power supply.SDA and SCL) for proper wiring.Incorrect or Garbled Display:
Multiple Displays Not Working:
Q: Can I use this module with a 3.3V microcontroller like the Raspberry Pi?
A: Yes, the module is compatible with both 3.3V and 5V logic levels, making it suitable for use with microcontrollers like the Raspberry Pi, ESP32, and Arduino.
Q: How many displays can I connect to a single I2C bus?
A: You can connect up to 8 displays by configuring unique I2C addresses for each module.
Q: Can I display letters or symbols on the 7-segment display?
A: While the display is primarily designed for numbers, some letters and symbols can be displayed using the Adafruit library.
Q: Do I need external resistors for the LEDs?
A: No, the module includes all necessary resistors and components for driving the LEDs.
Q: How do I adjust the brightness of the display?
A: Use the setBrightness() function in the Adafruit library to adjust the brightness level programmatically.