Simple test

Ensure your device works with this simple test.

examples/slideshow_simpletest.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import board
from adafruit_slideshow import PlayBackOrder, SlideShow
import pulseio

# 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