Skip to content

Commit 00ef90f

Browse files
committed
Simplify the internals and brightness.
1 parent 80faeaf commit 00ef90f

File tree

4 files changed

+167
-188
lines changed

4 files changed

+167
-188
lines changed

README.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ Usage Example
3131

3232
.. code-block:: python
3333
34-
from adafruit_slideshow import PlayBackMode, SlideShow
34+
from adafruit_slideshow import PlayBackOrder, SlideShow
35+
import board
36+
import pulseio
3537
36-
slideshow = SlideShow()
37-
slideshow.loop = False
38-
slideshow.order = PlayBackMode.ALPHA
38+
# Create the slideshow object that plays through once alphabetically.
39+
slideshow = SlideShow(board.DISPLAY, pulseio.PWMOut(board.TFT_BACKLIGHT), folder="/",
40+
loop=False, order=PlayBackOrder.ALPHABETICAL)
3941
4042
while slideshow.update():
4143
pass

0 commit comments

Comments
 (0)