From 8c3cd751ec687dd1fc869ef4c33e2ea28ce4d7ba Mon Sep 17 00:00:00 2001 From: shr34sachin Date: Tue, 18 Jun 2019 16:55:25 +0545 Subject: [PATCH 1/2] Update DMD2.h Changed the datatype of pixelswide, pixelsHigh, width and height from byte to uint16_t, so that the library could work for more than 7 display boards in single row. --- DMD2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DMD2.h b/DMD2.h index 96bbd50..d1461cf 100644 --- a/DMD2.h +++ b/DMD2.h @@ -98,7 +98,7 @@ class DMDFrame { friend class DMD_TextBox; public: - DMDFrame(byte pixelsWide, byte pixelsHigh); + DMDFrame(uint16_t pixelsWide, uint16_t pixelsHigh); DMDFrame(const DMDFrame &source); virtual ~DMDFrame(); @@ -168,10 +168,10 @@ class DMDFrame void swapBuffers(DMDFrame &other); - const byte width; // in pixels - const byte height; // in pixels + const uint16_t width; // in pixels + const uint16_t height; // in pixels protected: - volatile uint8_t *bitmap; + volatile uint8_t *bitmap;uint16_t byte row_width_bytes; // width in bitmap, bit-per-pixel rounded up to nearest byte byte height_in_panels; // in panels From ea15b98e4fc69c30977cb153a7a7e46e3426a405 Mon Sep 17 00:00:00 2001 From: shr34sachin Date: Mon, 1 Jul 2019 19:57:23 +0545 Subject: [PATCH 2/2] Update DMD2.h Additional datatype in line 174 is a blunder. Should have been mistakenly typed. --- DMD2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DMD2.h b/DMD2.h index d1461cf..4c5b167 100644 --- a/DMD2.h +++ b/DMD2.h @@ -171,7 +171,7 @@ class DMDFrame const uint16_t width; // in pixels const uint16_t height; // in pixels protected: - volatile uint8_t *bitmap;uint16_t + volatile uint8_t *bitmap; byte row_width_bytes; // width in bitmap, bit-per-pixel rounded up to nearest byte byte height_in_panels; // in panels