From 69723146f1532c0007d161e128d404ee13c8e474 Mon Sep 17 00:00:00 2001 From: aaronr8684 <57102156+aaronr8684@users.noreply.github.com> Date: Tue, 14 Feb 2023 13:54:17 -0500 Subject: [PATCH] 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) --- RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py index 806d6f2..2ad9cc0 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V3.py @@ -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: