From a2b7559b3b8fe8ffb2f29c7d137ab75666e6f961 Mon Sep 17 00:00:00 2001 From: Lukaswnd Date: Mon, 18 Mar 2024 14:19:27 +0100 Subject: [PATCH 1/2] Update ESP32-VirtualMatrixPanel-I2S-DMA.h fix issue #594 did not check any further Problems --- src/ESP32-VirtualMatrixPanel-I2S-DMA.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h index a6b9d15..02a6886 100644 --- a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -97,6 +97,9 @@ public: virtualResX = vmodule_cols * _panelResX; virtualResY = vmodule_rows * _panelResY; + _virtualResX = virtualResX; + _virtualResY = virtualResY; + dmaResX = panelResX * vmodule_rows * vmodule_cols - 1; /* Virtual Display width() and height() will return a real-world value. For example: @@ -151,9 +154,10 @@ private: virtual VirtualCoords getCoords(int16_t x, int16_t y); VirtualCoords coords; - int16_t virtualResX; - int16_t virtualResY; - + int16_t virtualResX; ///< Display width as combination of panels + int16_t virtualResY; ///< Display height as combination of panels + + int16_t _virtualResX; ///< Display width as modified by current rotation int16_t _virtualResY; ///< Display height as modified by current rotation From 149b58778af84d1cc387db8189191ad1ec98ed24 Mon Sep 17 00:00:00 2001 From: Lukaswnd Date: Mon, 18 Mar 2024 14:22:41 +0100 Subject: [PATCH 2/2] Update README.md fix issue #593 Did not check, if this is right --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2ffad8..6344e87 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ Make sure you also connect one of the HUB75 interfaces ground pins to a ground p Various people have created PCBs for which one can simply connect an ESP32 to a PCB, and then the PCB to the HUB75 connector, such as: -* Brian Lough's [ESP32 I2S Matrix Shield](http://blough.ie/i2smat/) +* Brian Lough's [ESP32 I2S Matrix Shield](https://github.com/rorosaurus/esp32-hub75-driver) * Charles Hallard's [WeMos Matrix Shield](https://github.com/hallard/WeMos-Matrix-Shield-DMA) * Bogdan Sass's [Morph Clock Shield](https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/discussions/110#discussioncomment-861152)