From 3b13645e7ff4427694a8daa448e66d77882d5f92 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Wed, 18 Aug 2021 15:28:56 +0100 Subject: [PATCH] Revert attempt to remove legacy begin --- ESP32-HUB75-MatrixPanel-I2S-DMA.cpp | 4 ++-- ESP32-HUB75-MatrixPanel-I2S-DMA.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp index a9bc531..0e3b058 100644 --- a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp +++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp @@ -756,7 +756,7 @@ void MatrixPanel_I2S_DMA::brtCtrlOE(int brt, const bool _buff_id){ /* * overload for compatibility */ - /* + bool MatrixPanel_I2S_DMA::begin(int r1, int g1, int b1, int r2, int g2, int b2, int a, int b, int c, int d, int e, int lat, int oe, int clk) { // RGB @@ -772,7 +772,7 @@ bool MatrixPanel_I2S_DMA::begin(int r1, int g1, int b1, int r2, int g2, int b2, return begin(); } -*/ + /** * @brief - Sets how many clock cycles to blank OE before/after LAT signal change diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/ESP32-HUB75-MatrixPanel-I2S-DMA.h index 5f14a66..4750b0b 100644 --- a/ESP32-HUB75-MatrixPanel-I2S-DMA.h +++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.h @@ -414,11 +414,8 @@ class MatrixPanel_I2S_DMA { /* * overload for compatibility */ - /* bool begin(int r1, int g1 = G1_PIN_DEFAULT, int b1 = B1_PIN_DEFAULT, int r2 = R2_PIN_DEFAULT, int g2 = G2_PIN_DEFAULT, int b2 = B2_PIN_DEFAULT, int a = A_PIN_DEFAULT, int b = B_PIN_DEFAULT, int c = C_PIN_DEFAULT, int d = D_PIN_DEFAULT, int e = E_PIN_DEFAULT, int lat = LAT_PIN_DEFAULT, int oe = OE_PIN_DEFAULT, int clk = CLK_PIN_DEFAULT); - */ - // TODO: Disable/Enable auto buffer flipping (useful for lots of drawPixel usage)... // Adafruit's BASIC DRAW API (565 colour format) virtual void drawPixel(int16_t x, int16_t y, uint16_t color); // overwrite adafruit implementation