Skip to content

Commit 2c74c4a

Browse files
authored
Merge pull request #793 from adafruit/TheKitty-patch-102
code for the CircuitPython slideshow guide
2 parents 0fa4f7b + b4f2c24 commit 2c74c4a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

CircuitPython_Slideshow/code.py

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

0 commit comments

Comments
 (0)