fix an issue with im_colour parameter missing

This commit is contained in:
Ace 2023-12-09 21:45:38 +00:00
parent 83b20af262
commit 49f78f3090

View File

@ -44,7 +44,7 @@ class Display:
except FileNotFoundError: except FileNotFoundError:
raise Exception('SPI could not be found. Please check if SPI is enabled') raise Exception('SPI could not be found. Please check if SPI is enabled')
def render(self, im_black: Image, im_colour:Image or None) -> None: def render(self, im_black: Image, im_colour:Image or None=None) -> None:
"""Renders an image on the selected E-Paper display. """Renders an image on the selected E-Paper display.
Initlializes the E-Paper display, sends image data and executes command Initlializes the E-Paper display, sends image data and executes command