Merge pull request #291 from aceinnolab/hotfix/#290

fix an issue with im_colour parameter missing
This commit is contained in:
Ace 2023-12-09 23:20:01 +01:00 committed by GitHub
commit 34014f2fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ class Display:
except FileNotFoundError:
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.
Initlializes the E-Paper display, sends image data and executes command