remove unneded 'color' argument

This commit is contained in:
txoof 2020-01-26 12:59:03 +01:00
commit 5c742fa948
8 changed files with 8 additions and 8 deletions

View file

@ -234,7 +234,7 @@ class EPD:
self.send_data(image[i + j * int(self.width / 8)]) self.send_data(image[i + j * int(self.width / 8)])
self.TurnOnDisplay() self.TurnOnDisplay()
def Clear(self, color): def Clear(self):
# self.SetWindow(0, 0, self.width - 1, self.height - 1) # self.SetWindow(0, 0, self.width - 1, self.height - 1)
# send the color data # send the color data
self.SetWindow(0, 0, self.width, self.height) self.SetWindow(0, 0, self.width, self.height)

View file

@ -131,7 +131,7 @@ class EPD:
self.ReadBusy() self.ReadBusy()
def Clear(self, color): def Clear(self):
self.send_command(0x24) self.send_command(0x24)
for j in range(0, self.height): for j in range(0, self.height):
for i in range(0, int(self.width / 8)): for i in range(0, int(self.width / 8)):

View file

@ -200,7 +200,7 @@ class EPD:
self.send_data(image[i + j * linewidth]) self.send_data(image[i + j * linewidth])
self.TurnOnDisplay() self.TurnOnDisplay()
def Clear(self, color): def Clear(self):
if self.width%8 == 0: if self.width%8 == 0:
linewidth = int(self.width/8) linewidth = int(self.width/8)
else: else:

View file

@ -288,7 +288,7 @@ class EPD:
self.send_data(image[i + j * linewidth]) self.send_data(image[i + j * linewidth])
self.TurnOnDisplay() self.TurnOnDisplay()
def Clear(self, color): def Clear(self):
if self.width%8 == 0: if self.width%8 == 0:
linewidth = int(self.width/8) linewidth = int(self.width/8)
else: else:

View file

@ -331,7 +331,7 @@ class EPD:
self.TurnOnDisplay() self.TurnOnDisplay()
def Clear(self, color): def Clear(self):
self.send_command(0x10) self.send_command(0x10)
for i in range(0, int(self.width * self.height / 8)): for i in range(0, int(self.width * self.height / 8)):
self.send_data(0x00) self.send_data(0x00)

View file

@ -498,7 +498,7 @@ class EPD:
self.ReadBusy() self.ReadBusy()
# pass # pass
def Clear(self, color): def Clear(self):
self.send_command(0x10) self.send_command(0x10)
for i in range(0, int(self.width * self.height / 8)): for i in range(0, int(self.width * self.height / 8)):
self.send_data(0xFF) self.send_data(0xFF)

View file

@ -183,7 +183,7 @@ class EPD:
self.send_data(image[i + j * int(self.width / 8)]) self.send_data(image[i + j * int(self.width / 8)])
self.TurnOnDisplay() self.TurnOnDisplay()
def Clear(self, color): def Clear(self):
self.SetWindow(0, 0, self.width - 1, self.height - 1) self.SetWindow(0, 0, self.width - 1, self.height - 1)
for j in range(0, self.height): for j in range(0, self.height):
self.SetCursor(0, j) self.SetCursor(0, j)

View file

@ -324,7 +324,7 @@ class EPD:
self.TurnOnDisplay() self.TurnOnDisplay()
def Clear(self, color): def Clear(self):
self.send_command(0x10) self.send_command(0x10)
for i in range(0, int(self.width * self.height / 8)): for i in range(0, int(self.width * self.height / 8)):
self.send_data(0x00) self.send_data(0x00)