Add default value for 'color' in Clear()
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
60762ac5a3
commit
69723146f1
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ class EPD:
|
|||
function : Clear screen
|
||||
parameter:
|
||||
'''
|
||||
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