aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
index cdc0496..124236e 100644
--- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
+++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
@@ -156,6 +156,8 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) {
coords.x += (panelResX);
}
+ // If virtual x-coord 'x' is on a panel n, then we need to start sending data from (panelResX)*2*n, given
+ // at the underlying DMA level these panels are actually 1/2 the height and double the length
coords.x += (panelResX)*2 * (panelResX)/x;