code for the CircuitPython slideshow guide
This commit is contained in:
parent
0fa4f7bded
commit
3ded978698
1 changed files with 11 additions and 0 deletions
11
CircuitPython_Slideshow/code.py
Normal file
11
CircuitPython_Slideshow/code.py
Normal 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
|
||||
Loading…
Reference in a new issue