From f83e262d10e1da13952b357c1dfaee2bdb7f223d Mon Sep 17 00:00:00 2001 From: aaronr8684 <57102156+aaronr8684@users.noreply.github.com> Date: Tue, 14 Feb 2023 13:56:34 -0500 Subject: [PATCH] Update epd2in13_V2.py 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_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py index 888f6ae..7d17603 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py @@ -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: