code for the CircuitPython slideshow guide

This commit is contained in:
Mike Barela 2019-08-09 14:59:47 -04:00 committed by GitHub
parent 0fa4f7bded
commit 3ded978698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,11 @@
import board
from adafruit_slideshow import PlayBackOrder, SlideShow
import pulseio
# 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