From 2852ce0e12c8ab1b5f932af814449e0984da4e4e Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 12 Mar 2023 10:23:46 +0000 Subject: Update ESP32-HUB75-MatrixPanel-I2S-DMA.h --- src/ESP32-HUB75-MatrixPanel-I2S-DMA.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h index 9e7ed4e..4c555ec 100644 --- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h +++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h @@ -377,11 +377,11 @@ class MatrixPanel_I2S_DMA { * @param {HUB75_I2S_CFG} opts : structure with matrix configuration * */ - MatrixPanel_I2S_DMA(const HUB75_I2S_CFG& opts) : + MatrixPanel_I2S_DMA(const HUB75_I2S_CFG& opts) #ifdef USE_GFX_ROOT - GFX(opts.mx_width*opts.chain_length, opts.mx_height) + : GFX(opts.mx_width*opts.chain_length, opts.mx_height) #elif !defined NO_GFX - Adafruit_GFX(opts.mx_width*opts.chain_length, opts.mx_height) + : Adafruit_GFX(opts.mx_width*opts.chain_length, opts.mx_height) #endif { setCfg(opts); @@ -862,6 +862,7 @@ class MatrixPanel_I2S_DMA { uint16_t PIXELS_PER_ROW = m_cfg.mx_width * m_cfg.chain_length; // number of pixels in a single row of all chained matrix modules (WIDTH of a combined matrix chain) uint8_t ROWS_PER_FRAME = m_cfg.mx_height / MATRIX_ROWS_IN_PARALLEL; // RPF - rows per frame, either 16 or 32 depending on matrix module uint8_t MASK_OFFSET = 16 - m_cfg.getPixelColorDepthBits(); + // Other private variables bool initialized = false; bool config_set = false; -- cgit v1.2.3