This is a library for the Adafruit LED Backpacks. This library works with the Adafruit Mini 8x8.
Dependents: CompSci335Project TritiumSim
How to use this library:
main.cpp
#include "mbed.h" #include "Adafruit_LEDBackpack.h" #include "Adafruit_GFX.h" I2C i2c(p9, p10); Adafruit_8x8matrix matrix = Adafruit_8x8matrix(&i2c); int main() { matrix.begin(0x70); while(1) { matrix.clear(); for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { matrix.drawPixel(i, j, LED_ON); } } matrix.writeDisplay(); // write the changes we just made to the display wait(60); } }
Revision 1:f066d5347c60, committed 2013-08-16
- Comitter:
- luizhespanha
- Date:
- Fri Aug 16 15:44:44 2013 +0000
- Parent:
- 0:e81a6274acce
- Commit message:
- Add licence informations
Changed in this revision
Adafruit_LEDBackpack.cpp | Show annotated file Show diff for this revision Revisions of this file |
Adafruit_LEDBackpack.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e81a6274acce -r f066d5347c60 Adafruit_LEDBackpack.cpp --- a/Adafruit_LEDBackpack.cpp Fri Aug 16 15:41:01 2013 +0000 +++ b/Adafruit_LEDBackpack.cpp Fri Aug 16 15:44:44 2013 +0000 @@ -17,6 +17,10 @@ Written by Limor Fried/Ladyada for Adafruit Industries. BSD license, all text above must be included in any redistribution ****************************************************/ + + /* + * Modified by Luiz Hespanha (http://www.d3.do) 8/16/2013 for use in LPC1768 + */ #include "mbed.h" #include "Adafruit_LEDBackpack.h"
diff -r e81a6274acce -r f066d5347c60 Adafruit_LEDBackpack.h --- a/Adafruit_LEDBackpack.h Fri Aug 16 15:41:01 2013 +0000 +++ b/Adafruit_LEDBackpack.h Fri Aug 16 15:44:44 2013 +0000 @@ -17,6 +17,10 @@ Written by Limor Fried/Ladyada for Adafruit Industries. BSD license, all text above must be included in any redistribution ****************************************************/ + + /* + * Modified by Luiz Hespanha (http://www.d3.do) 8/16/2013 for use in LPC1768 + */ #include "mbed.h" #include "Adafruit_GFX.h"