Datasheet
https://adafru.it/aYM
https://adafru.it/aYM
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. Close all open IDE windows and 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 "sevenseg" example sketch that will demonstrate various
capabilities of the library and the display.
Once you're happy that the matrix works, you can write your own sketches.
There's a few ways you can draw to the display. The easiest is to just call print - just like you do with Serial
print(
variable,
HEX) - this will print a hexidecimal number, from 0000 up to FFFF
print(
variable,
DEC) or print(
variable
) - this will print a decimal integer, from 0000 up to 9999
If you need more control, you can call writeDigitNum(
location
,
number
) - this will write the
number
(0-9) to a single
location. Location #0 is all the way to the left, location #2 is the colon dots so you probably want to skip it, location #4
is all the way to the right.
To control the colon and decimal points, use the writeDigitRaw(location, bitmap) function. (Note that both dots of the
center colon are wired together internal to the display, so it is not possible to address them separately.) Specify 2 for
the location and the bits are mapped as follows:
0x02 - center colon (both dots)
0x04 - left colon - lower dot
0x08 - left colon - upper dot
0x10 - decimal point
© Adafruit Industries https://learn.adafruit.com/adafruit-led-backpack Page 40 of 74










