Simple test
Ensure your device works with this simple test.
examples/slideshow_simpletest.py
1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2# SPDX-License-Identifier: MIT
3
4"""Basic demonstration script will create a slideshow
5object that plays through once alphabetically."""
6
7import board
8
9from adafruit_slideshow import PlayBackOrder, SlideShow
10
11# use built in display (PyPortal, PyGamer, PyBadge, CLUE, etc.)
12# see guide for setting up external displays (TFT / OLED breakouts, RGB matrices, etc.)
13# https://learn.adafruit.com/circuitpython-display-support-using-displayio/display-and-display-bus
14display = board.DISPLAY
15
16
17slideshow = SlideShow(
18 board.DISPLAY,
19 None,
20 folder="/images/",
21 loop=False,
22 order=PlayBackOrder.ALPHABETICAL,
23 dwell=10,
24)
25
26while slideshow.update():
27 pass