Mac Lobdell / Mbed OS Adafruit_LEDBackpack_32x8_App

Dependencies:   Adafruit_32x8matrix

Fork of Adafruit_LEDBackpack_16x8_App by Mac Lobdell

Committer:
maclobdell
Date:
Wed Jun 28 19:27:51 2017 +0000
Revision:
6:8d2eb79a4baf
create class for combined matrix with two 16 x 8 matrices stuck together

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maclobdell 6:8d2eb79a4baf 1 #ifndef _ADAFRUIT_32X8MATRIX_H_
maclobdell 6:8d2eb79a4baf 2 #define _ADAFRUIT_32X8MATRIX_H_
maclobdell 6:8d2eb79a4baf 3
maclobdell 6:8d2eb79a4baf 4 #include "Adafruit_LEDBackpack.h"
maclobdell 6:8d2eb79a4baf 5 #include "Adafruit_GFX.h"
maclobdell 6:8d2eb79a4baf 6
maclobdell 6:8d2eb79a4baf 7 //notes
maclobdell 6:8d2eb79a4baf 8 //220uA no leds on
maclobdell 6:8d2eb79a4baf 9 //default brightness - rises to 20mA at short peak then back down when scrolling hello
maclobdell 6:8d2eb79a4baf 10 //brightness = 1, rises to ~4mA at short peak then back down when scrolling hello
maclobdell 6:8d2eb79a4baf 11
maclobdell 6:8d2eb79a4baf 12
maclobdell 6:8d2eb79a4baf 13 class Adafruit_32x8matrix {
maclobdell 6:8d2eb79a4baf 14 public:
maclobdell 6:8d2eb79a4baf 15 Adafruit_32x8matrix(I2C *i2c, uint8_t i2c_addr, uint8_t i2c_addr2, uint8_t rotation, uint8_t rotation2, uint8_t brightness);
maclobdell 6:8d2eb79a4baf 16
maclobdell 6:8d2eb79a4baf 17 void scrollText(char * , uint8_t , uint8_t );
maclobdell 6:8d2eb79a4baf 18 void showText(char * , uint8_t , uint8_t );
maclobdell 6:8d2eb79a4baf 19
maclobdell 6:8d2eb79a4baf 20 private:
maclobdell 6:8d2eb79a4baf 21 I2C _i2c;
maclobdell 6:8d2eb79a4baf 22 Adafruit_16x8matrix _matrix;
maclobdell 6:8d2eb79a4baf 23 Adafruit_16x8matrix _matrix2;
maclobdell 6:8d2eb79a4baf 24 uint8_t _i2c_addr;
maclobdell 6:8d2eb79a4baf 25 uint8_t _i2c_addr2;
maclobdell 6:8d2eb79a4baf 26 uint8_t _rotation;
maclobdell 6:8d2eb79a4baf 27 uint8_t _rotation2;
maclobdell 6:8d2eb79a4baf 28 uint8_t _brightness;
maclobdell 6:8d2eb79a4baf 29
maclobdell 6:8d2eb79a4baf 30 };
maclobdell 6:8d2eb79a4baf 31
maclobdell 6:8d2eb79a4baf 32 #endif