Library to drive a pair of Adafruit 16x8 led matrices (powered by Adafruit LED Backpack) rotated end to end and stuck together to make a larger matrix.
Dependencies: Adafruit_LEDBackpack
Dependents: Adafruit_LEDBackpack_32x8_App RubeGoldberg
Adafruit_32x8matrix.h
00001 #ifndef _ADAFRUIT_32X8MATRIX_H_ 00002 #define _ADAFRUIT_32X8MATRIX_H_ 00003 00004 #include "Adafruit_LEDBackpack.h" 00005 #include "Adafruit_GFX.h" 00006 00007 //notes 00008 //220uA no leds on 00009 //default brightness - rises to 20mA at short peak then back down when scrolling hello 00010 //brightness = 1, rises to ~4mA at short peak then back down when scrolling hello 00011 00012 00013 class Adafruit_32x8matrix { 00014 public: 00015 Adafruit_32x8matrix(I2C *i2c, uint8_t i2c_addr, uint8_t i2c_addr2, uint8_t rotation, uint8_t rotation2, uint8_t brightness); 00016 00017 void scrollText(char * , uint8_t , uint8_t ); 00018 void showText(char * , uint8_t , uint8_t ); 00019 void playText(char * , uint8_t , uint8_t ); 00020 00021 private: 00022 I2C *_i2c; 00023 Adafruit_16x8matrix _matrix; 00024 Adafruit_16x8matrix _matrix2; 00025 uint8_t _i2c_addr; 00026 uint8_t _i2c_addr2; 00027 uint8_t _rotation; 00028 uint8_t _rotation2; 00029 uint8_t _brightness; 00030 00031 }; 00032 00033 #endif
Generated on Thu Jul 14 2022 04:51:12 by
1.7.2