aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-10 22:15:57 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-10 22:15:57 +0100
commit5bf4aa3069e9f3a96209326ccd93b594a7651f2a (patch)
treec7212aa960e686892e11dbf9dab29f797e96220d
parent32f86bb87061e8d16feadcc50e2dd8c53221ef3a (diff)
Got my 1's and 0's the wrong way around
-rw-r--r--examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
index 1e6ecbe..0827387 100644
--- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
+++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
@@ -152,15 +152,15 @@ 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 == 0) { // returns true/1 for the 1st and 3rd 8-pixel 1/4th of a 32px high panel
+ if ( (coords.y /8) % 2 == 1) { // returns true/1 for the 1st and 3rd 8-pixel 1/4th of a 32px high panel
coords.x += (panelResX*col);
- coords.y -= 8; // half the row-coord, to match the PHYSICAL DMA configuration.
+ // coords.y -= 8; // half the row-coord, to match the PHYSICAL DMA configuration.
}
else
{
// Or should it be here?
- // coords.y -= 8; // half the row-coord, to match the PHYSICAL DMA configuration.
+ coords.y -= 8; // half the row-coord, to match the PHYSICAL DMA configuration.
}