diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-24 22:06:44 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-24 22:06:44 +0100 |
| commit | d952839a0dabb525ff4f0a91ead1eef48810a7f4 (patch) | |
| tree | 436a308443b242310fb1156d717c55f613724f55 /examples | |
| parent | 3f511c9f6e2e98b7db948910bc3411f5041a1186 (diff) | |
Update OneEighthScanMatrixPanel.h
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h | 2 |
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; |
