Simple test

Ensure your device works with this simple test.

examples/slideshow_simpletest.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import board
import pulseio
from adafruit_slideshow import PlayBackOrder, SlideShow

# pylint: disable=no-member

# Create the slideshow object that plays through once alphabetically.
slideshow = SlideShow(
    board.DISPLAY,
    pulseio.PWMOut(board.TFT_BACKLIGHT),
    folder="/",
    loop=False,
    order=PlayBackOrder.ALPHABETICAL,
)

while slideshow.update():
    pass