Skip to content

Commit ee53f4a

Browse files
authored
Merge pull request #1 from tannewt/simplify
Simplify
2 parents 80faeaf + 084a9d5 commit ee53f4a

File tree

4 files changed

+167
-190
lines changed

4 files changed

+167
-190
lines changed

README.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Introduction
1313
:target: https://travis-ci.org/adafruit/adafruit_CircuitPython_Slideshow
1414
:alt: Build Status
1515

16-
CircuitPython helper library for displaying a slideshow of images on a board with a built-in
17-
display.
16+
CircuitPython helper library for displaying a slideshow of images on a display.
1817

1918
Dependencies
2019
=============
@@ -31,11 +30,13 @@ Usage Example
3130

3231
.. code-block:: python
3332
34-
from adafruit_slideshow import PlayBackMode, SlideShow
33+
from adafruit_slideshow import PlayBackOrder, SlideShow
34+
import board
35+
import pulseio
3536
36-
slideshow = SlideShow()
37-
slideshow.loop = False
38-
slideshow.order = PlayBackMode.ALPHA
37+
# Create the slideshow object that plays through once alphabetically.
38+
slideshow = SlideShow(board.DISPLAY, pulseio.PWMOut(board.TFT_BACKLIGHT), folder="/",
39+
loop=False, order=PlayBackOrder.ALPHABETICAL)
3940
4041
while slideshow.update():
4142
pass

0 commit comments

Comments
 (0)