Simple test¶
Ensure your device works with this simple test.
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."""
6import board
7from adafruit_slideshow import PlayBackOrder, SlideShow
8
9# use built in display (PyPortal, PyGamer, PyBadge, CLUE, etc.)
10# see guide for setting up external displays (TFT / OLED breakouts, RGB matrices, etc.)
11# https://learn.adafruit.com/circuitpython-display-support-using-displayio/display-and-display-bus
12display = board.DISPLAY
13
14# pylint: disable=no-member
15
16slideshow = SlideShow(
17 board.DISPLAY,
18 None,
19 folder="/images/",
20 loop=False,
21 order=PlayBackOrder.ALPHABETICAL,
22 dwell=10,
23)
24
25while slideshow.update():
26 pass