aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-10 19:52:32 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-10 19:52:32 +0100
commitad2cb3c9767125e682fa4a494f47e357bbb0fb3f (patch)
tree67a2cc5691e722d103e196a19b37d983c39ad822 /examples
parent5a4e17945b740561c23728485da3884ea836aabf (diff)
Update OneEighthScanMatrixPanel.h
Diffstat (limited to 'examples')
-rw-r--r--examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
index 5fc8bd7..2ef257a 100644
--- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
+++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
@@ -163,13 +163,18 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) {
*/
// Reverse co-ordinates if panel chain from ESP starts from the TOP RIGHT
- // TODO: Remove use of underyling _cfg configuration values!
if (_chain_top_down)
{
+ /*
+ // TODO: Remove use of underyling _cfg configuration values!
const HUB75_I2S_CFG _cfg = this->display->getCfg();
coords.x = (_cfg.mx_width * _cfg.chain_length - 1) - coords.x;
coords.y = (_cfg.mx_height-1) - coords.y;
-
+ */
+
+ coords.x = (panelResX * rows * cols - 1) - coords.x;
+ coords.y = (panelResY-1) - coords.y;
+
}
return coords;