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) 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