Update epd2in13.py
This will allow the screen to be cleared without the color parameter being explicitly included (similar to the 2in7 library)
This commit is contained in:
parent
69723146f1
commit
fa699d3728
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class EPD:
|
|||
self.send_data(image[i + j * linewidth])
|
||||
self.TurnOnDisplay()
|
||||
|
||||
def Clear(self, color):
|
||||
def Clear(self, color=0xFF):
|
||||
if self.width%8 == 0:
|
||||
linewidth = int(self.width/8)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue