From 7042631ddab3599cf1426485803554a96e88e115 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 10 Oct 2021 22:39:28 +0100 Subject: [PATCH] 4th time lucky --- examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h index c9e169d..117d052 100644 --- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h +++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h @@ -152,7 +152,7 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) { // 1/8 Scan Panel - Is the final x-coord on the 1st or 3rd, 1/4ths (8 pixel 'blocks') of the panel (i.e. Row 0-7 or 17-24) ? // Double the length of the x-coord if required - if ( (coords.y /8) % 2 == 1) { // returns true/1 for the 1st and 3rd 8-pixel 1/4th of a 32px high panel + if ( ((coords.y /8) % 2) == 0) { // returns true/1 for the 1st and 3rd 8-pixel 1/4th of a 32px high panel coords.x += (panelResX*col); } else