Adafruit_Learning_System_Gu.../CircuitPython_Slideshow/code.py
2022-02-23 14:01:17 -05:00

17 lines
543 B
Python

# SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# CircuitPython Slideshow - uses the adafruit_slideshow.mpy library
import board
from adafruit_slideshow import PlayBackOrder, SlideShow
# Create the slideshow object that plays through once alphabetically.
slideshow = SlideShow(board.DISPLAY,
folder="/images",
loop=True,
order=PlayBackOrder.ALPHABETICAL,
dwell=60)
while slideshow.update():
pass