fix incorrect init order

This commit is contained in:
ladyada 2019-03-04 21:30:52 -05:00
parent 642cb0dada
commit 2c20e845ee

View file

@ -110,10 +110,9 @@ class Adafruit_IL0373(Adafruit_EPD):
self.command(_IL0373_CDI, bytearray([0x37]))
self.command(_IL0373_PLL, bytearray([0x29]))
_b1 = self._width & 0xFF
_b2 = (self._width >> 8) & 0xFF
_b2 = (self._height >> 8) & 0xFF
_b3 = self._height & 0xFF
_b4 = (self._height >> 8) & 0xFF
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3, _b4]))
self.command(_IL0373_RESOLUTION, bytearray([_b1, _b2, _b3]))
self.command(_IL0373_VCM_DC_SETTING, bytearray([0x0A]))