Skip to content

Commit cf49a1d

Browse files
committed
ahh, orientation is always with inkdots at bottom
1 parent 0728206 commit cf49a1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_epd/il0373.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def power_up(self):
109109
self.command(_IL0373_PANEL_SETTING, bytearray([0xCF]))
110110
self.command(_IL0373_CDI, bytearray([0x37]))
111111
self.command(_IL0373_PLL, bytearray([0x29]))
112-
_b1 = self.height & 0xFF
113-
_b2 = (self.height >> 8) & 0xFF
114-
_b3 = self.width & 0xFF
115-
_b4 = (self.width >> 8) & 0xFF
112+
_b1 = self.width & 0xFF
113+
_b2 = (self.width >> 8) & 0xFF
114+
_b3 = self.height & 0xFF
115+
_b4 = (self.height >> 8) & 0xFF
116116
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3, _b4]))
117117
self.command(_IL0373_VCM_DC_SETTING, bytearray([0x0A]))
118118

0 commit comments

Comments
 (0)