Skip to content

Commit 973b394

Browse files
authored
Merge pull request #46 from FoamyGuy/displayio_api_updates
Displayio api updates
2 parents 9634b96 + 40fd67e commit 973b394

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_slideshow.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
try:
5454
from typing import Optional
5555

56+
import busdisplay
5657
from pwmio import PWMOut
5758
except ImportError:
5859
pass
@@ -101,7 +102,7 @@ class SlideShow:
101102
"""
102103
Class for displaying a slideshow of .bmp images on displays.
103104
104-
:param displayio.Display display: The display to use
105+
:param busdisplay.BusDisplay display: The display to use
105106
:param PWMOut backlight_pwm: The PWMOut object used for the backlight
106107
:param str folder: Specify the folder containing the image files, in quotes. Default is
107108
the root directory, ``"/"``.
@@ -182,7 +183,7 @@ class SlideShow:
182183

183184
def __init__(
184185
self,
185-
display: displayio.Display,
186+
display: busdisplay.BusDisplay,
186187
backlight_pwm: Optional[PWMOut] = None,
187188
*,
188189
folder: str = "/",

0 commit comments

Comments
 (0)