@@ -82,7 +82,6 @@ void RGBmatrixPanel::init(uint8_t rows, uint8_t a, uint8_t b, uint8_t c,
8282 uint8_t sclk, uint8_t latch, uint8_t oe, boolean dbuf) {
8383
8484 nRows = rows; // Number of multiplexed rows; actual height is 2X this
85- constructor (32 , nRows * 2 );
8685
8786 // Allocate and initialize matrix buffer:
8887 int buffsize = 32 * nRows * 3 , // x3 = 3 bytes holds 4 planes "packed"
@@ -123,15 +122,17 @@ void RGBmatrixPanel::init(uint8_t rows, uint8_t a, uint8_t b, uint8_t c,
123122// Constructor for 16x32 panel:
124123RGBmatrixPanel::RGBmatrixPanel (
125124 uint8_t a, uint8_t b, uint8_t c,
126- uint8_t sclk, uint8_t latch, uint8_t oe, boolean dbuf) {
125+ uint8_t sclk, uint8_t latch, uint8_t oe, boolean dbuf) :
126+ Adafruit_GFX(32 , 16 ) {
127127
128128 init (8 , a, b, c, sclk, latch, oe, dbuf);
129129}
130130
131131// Constructor for 32x32 panel:
132132RGBmatrixPanel::RGBmatrixPanel (
133133 uint8_t a, uint8_t b, uint8_t c, uint8_t d,
134- uint8_t sclk, uint8_t latch, uint8_t oe, boolean dbuf) {
134+ uint8_t sclk, uint8_t latch, uint8_t oe, boolean dbuf) :
135+ Adafruit_GFX(32 , 32 ) {
135136
136137 init (16 , a, b, c, sclk, latch, oe, dbuf);
137138
0 commit comments