Skip to content

Commit 69c31c4

Browse files
committed
displayio API updates
1 parent 9634b96 commit 69c31c4

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
@@ -33,6 +33,7 @@
3333
# text slides are an optional feature and require adafruit_display_text
3434
import json
3535

36+
import busdisplay
3637
import terminalio
3738
from adafruit_display_text import bitmap_label
3839

@@ -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)