code format
This commit is contained in:
parent
609f6066c7
commit
9ffb066761
1 changed files with 5 additions and 1 deletions
|
|
@ -82,7 +82,11 @@ class GraphicsBase:
|
|||
if file_lower.endswith(".bmp"):
|
||||
background = displayio.OnDiskBitmap(file_or_color)
|
||||
palette = background.pixel_shader
|
||||
elif file_lower.endswith(".jpg") or file_lower.endswith(".jpeg") or file_lower.endswith(".png"):
|
||||
elif (
|
||||
file_lower.endswith(".jpg")
|
||||
or file_lower.endswith(".jpeg")
|
||||
or file_lower.endswith(".png")
|
||||
):
|
||||
background, palette = adafruit_imageload.load(file_or_color)
|
||||
else:
|
||||
raise ValueError(f"Image File type {file_or_color} not supported")
|
||||
|
|
|
|||
Loading…
Reference in a new issue