Skip to content

Commit 3ded978

Browse files
authored
code for the CircuitPython slideshow guide
1 parent 0fa4f7b commit 3ded978

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

CircuitPython_Slideshow/code.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import board
2+
from adafruit_slideshow import PlayBackOrder, SlideShow
3+
import pulseio
4+
5+
# Create the slideshow object that plays through once alphabetically.
6+
slideshow = SlideShow(board.DISPLAY,
7+
folder="/images", loop=True,
8+
order=PlayBackOrder.ALPHABETICAL, dwell=60)
9+
10+
while slideshow.update():
11+
pass

0 commit comments

Comments
 (0)