Update epd2in7.py
This commit is contained in:
parent
576cc16a16
commit
cf1fcf7bb7
1 changed files with 4 additions and 3 deletions
|
|
@ -535,13 +535,14 @@ class EPD:
|
|||
# pass
|
||||
|
||||
def Clear(self, color):
|
||||
self.send_command(0x10)
|
||||
self.send_command(DATA_START_TRANSMISSION_1)
|
||||
for i in range(0, int(self.width * self.height / 8)):
|
||||
self.send_data(0xFF)
|
||||
self.send_command(0x13)
|
||||
self.send_command(DATA_START_TRANSMISSION_2)
|
||||
for i in range(0, int(self.width * self.height / 8)):
|
||||
self.send_data(0xFF)
|
||||
self.send_command(0x12)
|
||||
self.set_lut()
|
||||
self.send_command(DISPLAY_REFRESH)
|
||||
self.ReadBusy()
|
||||
|
||||
def sleep(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue