We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b58ad commit e63603aCopy full SHA for e63603a
library/lcd/lcd_comm_rev_c.py
@@ -381,10 +381,10 @@ def _generate_update_image(
381
if self.sub_revision == SubRevision.REV_8INCH:
382
if self.orientation == Orientation.LANDSCAPE:
383
image = image.rotate(270, expand=True)
384
+ y0 = self.get_height() - y - image.width
385
elif self.orientation == Orientation.REVERSE_LANDSCAPE:
386
image = image.rotate(90, expand=True)
387
x0 = self.get_width() - x - image.height
- y0 = self.get_height() - y - image.width
388
elif self.orientation == Orientation.PORTRAIT:
389
image = image.rotate(180, expand=True)
390
x0 = self.get_height() - y - image.height
0 commit comments