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
Revision 1:ed6764fbda54, committed 2017-11-10
- Comitter:
- maclobdell
- Date:
- Fri Nov 10 14:08:31 2017 -0600
- Parent:
- 0:acc3c726ffe3
- Child:
- 2:cdcd2d7d83c3
- Commit message:
- Don't copy I2C object, just pass in pointer. Fixes error with mbed OS 5.6.x.
Changed in this revision
| Adafruit_32x8matrix.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Adafruit_32x8matrix.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_32x8matrix.cpp Wed Jun 28 19:32:40 2017 +0000
+++ b/Adafruit_32x8matrix.cpp Fri Nov 10 14:08:31 2017 -0600
@@ -4,7 +4,7 @@
Adafruit_32x8matrix::Adafruit_32x8matrix(I2C *i2c, uint8_t i2c_addr, uint8_t i2c_addr2, uint8_t rotation, uint8_t rotation2, uint8_t brightness)
- : _i2c(*i2c), _matrix(&_i2c), _matrix2(&_i2c), _i2c_addr(i2c_addr), _i2c_addr2(i2c_addr2), _rotation(rotation), _rotation2(rotation2), _brightness(brightness)
+ : _i2c(i2c), _matrix(_i2c), _matrix2(_i2c), _i2c_addr(i2c_addr), _i2c_addr2(i2c_addr2), _rotation(rotation), _rotation2(rotation2), _brightness(brightness)
{
@@ -63,4 +63,3 @@
_matrix2.clear();
}
-
\ No newline at end of file
--- a/Adafruit_32x8matrix.h Wed Jun 28 19:32:40 2017 +0000
+++ b/Adafruit_32x8matrix.h Fri Nov 10 14:08:31 2017 -0600
@@ -18,7 +18,7 @@
void showText(char * , uint8_t , uint8_t );
private:
- I2C _i2c;
+ I2C *_i2c;
Adafruit_16x8matrix _matrix;
Adafruit_16x8matrix _matrix2;
uint8_t _i2c_addr;
@@ -29,4 +29,4 @@
};
-#endif
\ No newline at end of file
+#endif