Datasheet

capable micro.
Wiring to the matrix is really easy
Connect CLK to the I2C clock - on Arduino UNO thats Analog #5, on the Leonardo its Digital #3, on the Mega its
digital #21
Connect DAT to the I2C data - on Arduino UNO thats Analog #4, on the Leonardo its Digital #2, on the Mega its
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 . 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 its your first library. You'll
also need to download the Adafruit GFX library that provides the graphics drawing routines. Restart the IDE.
Once you've restarted you should be able to select the File->Examples->Adafruit_LEDBackpack->matrix88 example
sketch. Upload it to your Arduino as usual. You should see a basic test program that goes through a bunch of different
drawing routine
Once you're happy that the matrix works, you can write your own sketches. The 8x8 matrix supports everything the
Adafruit GFX library - drawing pixels, lines, rectancles, circles, triangles, roundrects, and small bitmaps. For more details
check out the GFX page which will detail all of the GFX routines.
All the drawing routines only change the display memory kept by the Arduino. Don't forget to call writeDisplay() after
drawing to 'save' the memory out to the matrix via I2C.
© Adafruit Industries https://learn.adafruit.com/adafruit-led-backpack Page 11 of 74