Skip to content

Commit 1126bf8

Browse files
Fix for recent Adafruit_GFX change
1 parent 1974b8f commit 1126bf8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

RGBmatrixPanel.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
124123
RGBmatrixPanel::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:
132132
RGBmatrixPanel::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

Comments
 (0)