Skip to content

Commit add0c48

Browse files
committed
Fixed typo and updated example.
1 parent 229df34 commit add0c48

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.rst

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

3232
.. code-block:: python
3333
34-
import adafruit_slideshow
34+
from adafruit_slideshow import PlayBackMode, SlideShow
3535
36-
slideshow = adafruit_slideshow.SlideShow()
36+
slideshow = SlideShow()
3737
slideshow.loop = False
38-
slideshow.order = slideshow.ALPHA
38+
slideshow.order = PlayBackMode.ALPHA
3939
4040
while slideshow.update():
4141
pass

adafruit_slideshow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
**Hardware:**
3535
36-
* `Adafruit Hollowing M0 Express <https://www.adafruit.com/product/3900>`_
36+
* `Adafruit Hallowing M0 Express <https://www.adafruit.com/product/3900>`_
3737
3838
**Software and Dependencies:**
3939
@@ -101,7 +101,7 @@ class SlideShow:
101101
if slideshow should auto play, ``False`` if you want to control advancement
102102
manually. Default is ``True``.
103103
104-
Example code for Hollowing Express. With this example, the slideshow will play through once
104+
Example code for Hallowing Express. With this example, the slideshow will play through once
105105
in alphabetical order:
106106
107107
.. code-block:: python
@@ -115,7 +115,7 @@ class SlideShow:
115115
while slideshow.update():
116116
pass
117117
118-
Example code for Hollowing Express. Sets ``dwell`` to 0 seconds, turns ``auto_advance`` off,
118+
Example code for Hallowing Express. Sets ``dwell`` to 0 seconds, turns ``auto_advance`` off,
119119
and uses capacitive touch to advance backwards and forwards through the images and to control
120120
the brightness level of the backlight:
121121

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Table of Contents
2727
.. toctree::
2828
:caption: Related Products
2929

30-
Adafruit Hollowing M0 Express <https://www.adafruit.com/product/3900>
30+
Adafruit Hallowing M0 Express <https://www.adafruit.com/product/3900>
3131

3232
.. toctree::
3333
:caption: Other Links

0 commit comments

Comments
 (0)