diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54.py index afed50e..0d49c45 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54.py @@ -234,7 +234,7 @@ class EPD: self.send_data(image[i + j * int(self.width / 8)]) self.TurnOnDisplay() - def Clear(self, color): + def Clear(self): # self.SetWindow(0, 0, self.width - 1, self.height - 1) # send the color data self.SetWindow(0, 0, self.width, self.height) diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py index 8c8f09a..861c63c 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py @@ -131,7 +131,7 @@ class EPD: self.ReadBusy() - def Clear(self, color): + def Clear(self): self.send_command(0x24) for j in range(0, self.height): for i in range(0, int(self.width / 8)): diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13.py index c0e9394..8603241 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13.py @@ -200,7 +200,7 @@ class EPD: self.send_data(image[i + j * linewidth]) self.TurnOnDisplay() - def Clear(self, color): + def Clear(self): if self.width%8 == 0: linewidth = int(self.width/8) else: diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py index ae4c534..5c966f1 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13_V2.py @@ -288,7 +288,7 @@ class EPD: self.send_data(image[i + j * linewidth]) self.TurnOnDisplay() - def Clear(self, color): + def Clear(self): if self.width%8 == 0: linewidth = int(self.width/8) else: diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13d.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13d.py index de02f86..81199c7 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13d.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in13d.py @@ -331,7 +331,7 @@ class EPD: self.TurnOnDisplay() - def Clear(self, color): + def Clear(self): self.send_command(0x10) for i in range(0, int(self.width * self.height / 8)): self.send_data(0x00) diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in7.py index 20f1665..5475b73 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -498,7 +498,7 @@ class EPD: self.ReadBusy() # pass - def Clear(self, color): + def Clear(self): self.send_command(0x10) for i in range(0, int(self.width * self.height / 8)): self.send_data(0xFF) diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9.py index 80671a4..f83ca5f 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9.py @@ -183,7 +183,7 @@ class EPD: self.send_data(image[i + j * int(self.width / 8)]) self.TurnOnDisplay() - def Clear(self, color): + def Clear(self): self.SetWindow(0, 0, self.width - 1, self.height - 1) for j in range(0, self.height): self.SetCursor(0, j) diff --git a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9d.py b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9d.py index 67c0a7a..7d89154 100644 --- a/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9d.py +++ b/RaspberryPi_and_JetsonNano/python/lib/waveshare_epd/epd2in9d.py @@ -324,7 +324,7 @@ class EPD: self.TurnOnDisplay() - def Clear(self, color): + def Clear(self): self.send_command(0x10) for i in range(0, int(self.width * self.height / 8)): self.send_data(0x00)