Datasheet

Using the library interface is very easy. Start by creating the object with
Adafruit_24bargraph bar = Adafruit_24bargraph();
you can name it whatever you want, not just bar
Then initialize it with
bar.begin(0x70); // pass in the address
You can init with any address from 0x70 to 0x77, just make sure you solder in the matching solder jumpers!
Finally, write to the bargraph with
bar.setBar(
lednumber
,
ledcolor
);
Where
lednumber
is 0 thru 23.
ledcolor
can be LED_RED, LED_YELLOW, LED_GREEN or LED_OFF
The drawing routines only change the display memory kept by the Arduino. Don't forget to call bar.writeDisplay() after
drawing to 'save' the memory out to the matrix via I2C.
There are also a few small routines that are special to the matrix:
setBrightness(
brightness
)- will let you change the overall brightness of the entire display. 0 is least bright, 15 is
brightest and is what is initialized by the display when you start
blinkRate(
rate
) - You can blink the entire display. 0 is no blinking. 1, 2 or 3 is for display blinking.
© Adafruit Industries https://learn.adafruit.com/adafruit-led-backpack Page 58 of 74