Skip to content

Commit 6287492

Browse files
authored
Merge pull request #309 from mkarpiarz/inkplate10-fix-waveform-select-marker
[Inkplate 10] Fix Waveform select marker position
2 parents 9f6d92b + 54c1659 commit 6287492

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/Inkplate10/Diagnostics/Inkplate10_Set_Waveform/Inkplate10_Set_Waveform.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static void showGradient(int selected)
6969
display.print(' ');
7070
}
7171

72-
display.drawRect((selected * 6 * 4 * 2) + 432 - 3, 740, (6 * 4) + 2, (8 * 4) + 2, 0);
72+
display.drawRect(((selected-1) * 6 * 4 * 2) + 432 - 3, 740, (6 * 4) + 2, (8 * 4) + 2, 0);
7373

7474
for (int i = 0; i < 8; i++)
7575
display.fillRect(i * w, 0, w, h, i);

0 commit comments

Comments
 (0)