Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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