The Adafruit 14-Segment LED Alphanumeric Backpack is a versatile and easy-to-use display module that allows users to add a bright, crisp white LED readout to their projects. With 14 segments per character, it can display numbers, letters, and a variety of symbols, making it suitable for a wide range of applications such as digital clocks, counters, message boards, and any project requiring alphanumeric output.
Pin Name | Description |
---|---|
VCC | Power supply (3.3V - 5V DC) |
GND | Ground |
SDA | I2C Data Line |
SCL | I2C Clock Line |
ADDR | Address selection (connect to GND or VCC) |
#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 the data to the display
delay(2000); // Wait for 2 seconds
alpha4.clear(); // Clear the display
alpha4.writeDisplay(); // Send the clear command to the display
delay(500); // Wait for half a second
}
i2cdetect
utility or similar tools to confirm the display's address on the I2C bus.Q: Can I use this display with a 3.3V system?
A: Yes, the display can operate at 3.3V, but the brightness may be reduced compared to 5V operation.
Q: How many of these displays can I chain together?
A: You can chain up to 8 displays using different I2C addresses, from 0x70 to 0x77.
Q: Can I use this display with platforms other than Arduino?
A: Yes, as long as the platform supports I2C communication and you have the necessary libraries or can write your own driver code.