Skip to content

Commit 229df34

Browse files
committed
Linting and update to match API change
1 parent 346697b commit 229df34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/slideshow_simpletest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import adafruit_slideshow
1+
from adafruit_slideshow import PlayBackMode, SlideShow
22

33
# Create the slideshow object
4-
slideshow = adafruit_slideshow.SlideShow()
4+
slideshow = SlideShow()
55

66
# Set it to play through only once.
77
slideshow.loop = False
88

99
# Set the order to alphabetical.
10-
slideshow.order = slideshow.ALPHA
10+
slideshow.order = PlayBackMode.ALPHA
1111

1212
while slideshow.update():
1313
pass

examples/slideshow_touch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import board
12
from adafruit_slideshow import PlayBackMode, SlideShow, PlayBackDirection
23
import touchio
3-
import board
44

55
forward_button = touchio.TouchIn(board.TOUCH4)
66
back_button = touchio.TouchIn(board.TOUCH1)

0 commit comments

Comments
 (0)