From fa699d37287fa8362d8b16e00e88d16c583c4c8b Mon Sep 17 00:00:00 2001 From: aaronr8684 <57102156+aaronr8684@users.noreply.github.com> Date: Tue, 14 Feb 2023 13:56:01 -0500 Subject: [PATCH] Update epd2in13.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.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13.py index fcd4f39..f71726f 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13.py @@ -201,7 +201,7 @@ class EPD: self.send_data(image[i + j * linewidth]) self.TurnOnDisplay() - def Clear(self, color): + def Clear(self, color=0xFF): if self.width%8 == 0: linewidth = int(self.width/8) else: