Update code.py
This commit is contained in:
parent
11a5f243dd
commit
e7df472eb9
1 changed files with 4 additions and 5 deletions
|
|
@ -1,14 +1,13 @@
|
||||||
# CircuitPython Slideshow - uses the adafruit_slideshow.mpy library
|
# CircuitPython Slideshow - uses the adafruit_slideshow.mpy library
|
||||||
import board
|
import board
|
||||||
from adafruit_slideshow import PlayBackOrder, SlideShow
|
from adafruit_slideshow import PlayBackOrder, SlideShow
|
||||||
import pulseio
|
|
||||||
|
|
||||||
# Create the slideshow object that plays through once alphabetically.
|
# Create the slideshow object that plays through once alphabetically.
|
||||||
slideshow = SlideShow(board.DISPLAY,
|
slideshow = SlideShow(board.DISPLAY,
|
||||||
folder="/images",
|
folder="/images",
|
||||||
loop=True,
|
loop=True,
|
||||||
order=PlayBackOrder.ALPHABETICAL,
|
order=PlayBackOrder.ALPHABETICAL,
|
||||||
dwell=60)
|
dwell=60)
|
||||||
|
|
||||||
while slideshow.update():
|
while slideshow.update():
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue