Datasheet
Place the soldered backpack on top of the header and
Solder 'em!
That's it! now you're ready to run the firmware!
Seven-Segment Backpack Firmware
We wrote a basic library to help you work with the 7-segment backpack. The library is written for the Arduino and will
work with any Arduino as it just uses the I2C pins. The code is very portable and can be easily adapted to any I2C-
capable micro.
Wiring to the matrix is really easy
Connect CLK to the I2C clock - on Arduino UNO thats Analog #5, on the Leonardo it's Digital #3, on the Mega it's
digital #21
Connect DAT to the I2C data - on Arduino UNO thats Analog #4, on the Leonardo it's Digital #2, on the Mega it's
digital #20
Connect GND to common ground
Connect VCC+ to power - 5V is best but 3V also seems to work for 3V microcontrollers.
Next, download the Adafruit LED Backpack library from github (https://adafru.it/aLI) . To download click the
DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_LEDBackpack. Check that the
Adafruit_LEDBackpack folder contains Adafruit_LEDBackpack.cpp and Adafruit_LEDBackpack.h Place the
Adafruit_LEDBackpack library folder your
arduinosketchfolder
/libraries/ folder. You may need to create the
libraries
subfolder if it's your first library. You'll also need to download the Adafruit GFX library (https://adafru.it/aJa) - rename it
Adafruit_GFX and install it as the LED backpack library. It's not actually used for the 7-segment, it's only for the matrix
backpacks but it's still required. Restart the IDE.
Once you've restarted you should be able to select the File?Examples?Adafruit_LEDBackpack?sevenseg example
sketch. Upload it to your Arduino as usual. You should see a basic test program that goes through a bunch of different
routines.
© Adafruit Industries https://learn.adafruit.com/adafruit-led-backpack Page 32 of 74










