For 24bar graph support
Dependents: toastboard_integrated
Fork of Adafruit_LEDBackpack_2 by
Diff: Adafruit_LEDBackpack.h
- Revision:
- 2:0491b3f9a639
- Parent:
- 1:f066d5347c60
--- a/Adafruit_LEDBackpack.h Fri Aug 16 15:44:44 2013 +0000 +++ b/Adafruit_LEDBackpack.h Tue Nov 18 01:19:49 2014 +0000 @@ -22,6 +22,10 @@ * Modified by Luiz Hespanha (http://www.d3.do) 8/16/2013 for use in LPC1768 */ +/* + * Modified by Daniel Drew 11/13/2014 for use with 24ledbar backpack + */ + #include "mbed.h" #include "Adafruit_GFX.h" @@ -33,7 +37,6 @@ #define LED_GREEN 3 - #define HT16K33_BLINK_CMD 0x80 #define HT16K33_BLINK_DISPLAYON 0x01 #define HT16K33_BLINK_OFF 0 @@ -71,4 +74,13 @@ void drawPixel(int16_t x, int16_t y, uint16_t color); private: -}; \ No newline at end of file +}; + +class Adafruit_24bargraph : public Adafruit_LEDBackpack { + public: + Adafruit_24bargraph(I2C *i2c); + + void setBar(uint8_t bar, uint8_t color); + + private: +};