The Adafruit 14-Segment LED Alphanumeric Backpack is a versatile and easy-to-use display module that allows users to add a bright, crisp red LED alphanumeric display to their projects. Each of the alphanumeric characters is made up of 14 segments that can be controlled individually to display letters, numbers, and a variety of symbols. This component is commonly used in clocks, counters, and readouts in various electronics projects.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (3.3V - 5V) |
3 | SDA | I2C data line |
4 | SCL | I2C clock line |
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4();
void setup() {
alpha4.begin(0x70); // Initialize the display with its I2C address
}
void loop() {
alpha4.writeDigitAscii(0, 'H'); // Display 'H' on the first character
alpha4.writeDigitAscii(1, 'E'); // Display 'E' on the second character
alpha4.writeDigitAscii(2, 'L'); // Display 'L' on the third character
alpha4.writeDigitAscii(3, 'P'); // Display 'P' on the fourth character
alpha4.writeDisplay(); // Send data to the display to show it
delay(500); // Wait for half a second
alpha4.clear(); // Clear the display
alpha4.writeDisplay(); // Send the clear command to the display
delay(500); // Wait for half a second
}
Q: Can I use this display with a 5V microcontroller like an Arduino UNO? A: Yes, the display can be used with a 5V microcontroller. However, ensure that the logic levels for I2C are compatible.
Q: How many of these displays can I chain together? A: You can chain up to eight displays by setting unique I2C addresses for each one using the address jumpers.
Q: Can I display custom characters? A: Yes, the display supports custom characters. You can create custom bitmaps for each segment to form your desired character.
Q: Is it necessary to use external resistors with this display? A: No, the display has built-in resistors for the LED segments. However, pull-up resistors for the I2C lines may be necessary depending on your microcontroller.