diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2024-03-22 16:13:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-22 16:13:23 +0000 |
| commit | 1e4b46e9399c774b0d0603381ea894a42bfb77ac (patch) | |
| tree | 62690f1336f620e516527e148effe592981e2b97 | |
| parent | da0672ffd825335c20fa577a2377b0390597afe3 (diff) | |
| parent | 149b58778af84d1cc387db8189191ad1ec98ed24 (diff) | |
Merge pull request #606 from Lukaswnd/master
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/ESP32-VirtualMatrixPanel-I2S-DMA.h | 10 |
2 files changed, 8 insertions, 4 deletions
@@ -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) 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 |
