Skip to content

Commit 2c20e84

Browse files
committed
fix incorrect init order
1 parent 642cb0d commit 2c20e84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_epd/il0373.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ def power_up(self):
110110
self.command(_IL0373_CDI, bytearray([0x37]))
111111
self.command(_IL0373_PLL, bytearray([0x29]))
112112
_b1 = self._width & 0xFF
113-
_b2 = (self._width >> 8) & 0xFF
113+
_b2 = (self._height >> 8) & 0xFF
114114
_b3 = self._height & 0xFF
115-
_b4 = (self._height >> 8) & 0xFF
116-
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3, _b4]))
115+
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3]))
117116
self.command(_IL0373_VCM_DC_SETTING, bytearray([0x0A]))
118117

119118

0 commit comments

Comments
 (0)