fix incorrect init order
This commit is contained in:
parent
642cb0dada
commit
2c20e845ee
1 changed files with 2 additions and 3 deletions
|
|
@ -110,10 +110,9 @@ class Adafruit_IL0373(Adafruit_EPD):
|
||||||
self.command(_IL0373_CDI, bytearray([0x37]))
|
self.command(_IL0373_CDI, bytearray([0x37]))
|
||||||
self.command(_IL0373_PLL, bytearray([0x29]))
|
self.command(_IL0373_PLL, bytearray([0x29]))
|
||||||
_b1 = self._width & 0xFF
|
_b1 = self._width & 0xFF
|
||||||
_b2 = (self._width >> 8) & 0xFF
|
_b2 = (self._height >> 8) & 0xFF
|
||||||
_b3 = self._height & 0xFF
|
_b3 = self._height & 0xFF
|
||||||
_b4 = (self._height >> 8) & 0xFF
|
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3]))
|
||||||
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3, _b4]))
|
|
||||||
self.command(_IL0373_VCM_DC_SETTING, bytearray([0x0A]))
|
self.command(_IL0373_VCM_DC_SETTING, bytearray([0x0A]))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue