Skip to content

Commit e6aeaea

Browse files
authored
[ePaper] Fix SetPosition for display height greater than 255 (#1215)
1 parent ece1444 commit e6aeaea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devices/ePaper/Drivers/Ssd168x/Ssd168x.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public virtual void SetPosition(int x, int y)
616616
SendData((byte)(x / 8));
617617

618618
SendCommand((byte)Command.SetRAMAddressCounterY);
619-
SendData((byte)y);
619+
SendData((ushort)y);
620620
}
621621

622622
/// <summary>

0 commit comments

Comments
 (0)