remove unneded 'color' argument
This commit is contained in:
parent
809215a568
commit
5c742fa948
8 changed files with 8 additions and 8 deletions
|
|
@ -234,7 +234,7 @@ class EPD:
|
|||
self.send_data(image[i + j * int(self.width / 8)])
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
# self.SetWindow(0, 0, self.width - 1, self.height - 1)
|
||||
# send the color data
|
||||
self.SetWindow(0, 0, self.width, self.height)
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class EPD:
|
|||
|
||||
self.ReadBusy()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
self.send_command(0x24)
|
||||
for j in range(0, self.height):
|
||||
for i in range(0, int(self.width / 8)):
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ class EPD:
|
|||
self.send_data(image[i + j * linewidth])
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
if self.width%8 == 0:
|
||||
linewidth = int(self.width/8)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ class EPD:
|
|||
self.send_data(image[i + j * linewidth])
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
if self.width%8 == 0:
|
||||
linewidth = int(self.width/8)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ class EPD:
|
|||
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
self.send_command(0x10)
|
||||
for i in range(0, int(self.width * self.height / 8)):
|
||||
self.send_data(0x00)
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ class EPD:
|
|||
self.ReadBusy()
|
||||
# pass
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
self.send_command(0x10)
|
||||
for i in range(0, int(self.width * self.height / 8)):
|
||||
self.send_data(0xFF)
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ class EPD:
|
|||
self.send_data(image[i + j * int(self.width / 8)])
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
self.SetWindow(0, 0, self.width - 1, self.height - 1)
|
||||
for j in range(0, self.height):
|
||||
self.SetCursor(0, j)
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ class EPD:
|
|||
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self):
|
||||
self.send_command(0x10)
|
||||
for i in range(0, int(self.width * self.height / 8)):
|
||||
self.send_data(0x00)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue