Update epd2in13_V2.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:
aaronr8684 2023-02-14 13:56:34 -05:00 committed by GitHub
commit f83e262d10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ class EPD:
self.send_data2(image)
self.TurnOnDisplay()
def Clear(self, color):
def Clear(self, color=0xFF):
if self.width%8 == 0:
linewidth = int(self.width/8)
else: