Update code.py

This commit is contained in:
Mike Barela 2019-08-09 15:32:13 -04:00 committed by GitHub
parent 3ded978698
commit 11a5f243dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,14 @@
# CircuitPython Slideshow - uses the adafruit_slideshow.mpy library
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)
folder="/images",
loop=True,
order=PlayBackOrder.ALPHABETICAL,
dwell=60)
while slideshow.update():
pass