add default value for color parameter

This commit is contained in:
txoof 2023-02-15 17:37:38 +01:00
commit 85802dee4b
7 changed files with 7 additions and 7 deletions

View file

@ -244,7 +244,7 @@ class EPD:
self.set_lut(self.WF_Full_1IN54) # Set lut
def Clear(self, color):
def Clear(self, color=0xFF):
if self.width%8 == 0:
linewidth = int(self.width/8)
else: