|
56 | 56 | _IL91874_RESOLUTION = const(0x61) |
57 | 57 | _IL91874_VCM_DC_SETTING = const(0x82) |
58 | 58 |
|
| 59 | +# pylint: disable=line-too-long |
59 | 60 | _LUT_VCOMDC = b'\x00\x00\x00\x1a\x1a\x00\x00\x01\x00\n\n\x00\x00\x08\x00\x0e\x01\x0e\x01\x10\x00\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01' |
60 | 61 | _LUT_WW = b'\x90\x1a\x1a\x00\x00\x01@\n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01' |
61 | 62 | _LUT_BW = b'\xa0\x1a\x1a\x00\x00\x01\x00\n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x90\n\n\x00\x00\x08\xb0\x04\x10\x00\x00\x05\xb0\x03\x0e\x00\x00\n\xc0#\x00\x00\x00\x01' |
62 | 63 | _LUT_BB = b'\x90\x1a\x1a\x00\x00\x01@\n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01' |
63 | 64 | _LUT_WB = b'\x90\x1a\x1a\x00\x00\x01 \n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x10\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01' |
| 65 | +# pylint: enable=line-too-long |
64 | 66 |
|
65 | 67 | class Adafruit_IL91874(Adafruit_EPD): |
66 | 68 | """driver class for Adafruit IL91874 ePaper display breakouts""" |
@@ -126,11 +128,11 @@ def power_up(self): |
126 | 128 | self.command(_IL91874_CDI, bytearray([0x87])) |
127 | 129 |
|
128 | 130 | # Look Up Tables |
129 | | - self.command(_IL91874_LUT1, _LUT_VCOMDC); |
130 | | - self.command(_IL91874_LUTWW, _LUT_WW); |
131 | | - self.command(_IL91874_LUTBW, _LUT_BW); |
132 | | - self.command(_IL91874_LUTWB, _LUT_WB); |
133 | | - self.command(_IL91874_LUTBB, _LUT_BB); |
| 131 | + self.command(_IL91874_LUT1, _LUT_VCOMDC) |
| 132 | + self.command(_IL91874_LUTWW, _LUT_WW) |
| 133 | + self.command(_IL91874_LUTBW, _LUT_BW) |
| 134 | + self.command(_IL91874_LUTWB, _LUT_WB) |
| 135 | + self.command(_IL91874_LUTBB, _LUT_BB) |
134 | 136 |
|
135 | 137 | _b0 = (self._width >> 8) & 0xFF |
136 | 138 | _b1 = self._width & 0xFF |
|
0 commit comments