Skip to content

Commit 274a137

Browse files
authored
Merge pull request #16 from Neradoc/add-multitrellis-to-docs
Add multitrellis to docs and fix a couple of typos
2 parents 94ac5c4 + 7b04cce commit 274a137

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

adafruit_neotrellis/multitrellis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
"""
6-
interface for connecting together multiple NeoTrellis boards.
6+
Interface for connecting together multiple NeoTrellis boards.
77
"""
88

99
# imports

docs/api.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
77
.. automodule:: adafruit_neotrellis.neotrellis
88
:members:
9+
10+
.. automodule:: adafruit_neotrellis.multitrellis
11+
:members:

docs/examples.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ Ensure your device works with this simple test.
66
.. literalinclude:: ../examples/neotrellis_simpletest.py
77
:caption: examples/neotrellis_simpletest.py
88
:linenos:
9+
10+
MultiTrellis test
11+
------------------
12+
13+
The multitrellis submodule helps manage multiple trellis as one.
14+
15+
.. literalinclude:: ../examples/neotrellis_multitrellis_simpletest.py
16+
:caption: examples/neotrellis_multitrellis_simpletest.py
17+
:linenos:

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Table of Contents
1111

1212
.. toctree::
1313
:caption: Examples
14+
:maxdepth: 3
1415

1516
examples
1617

examples/neotrellis_multitrellis_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def blink(xcoord, ycoord, edge):
4040
# turn the LED on when a rising edge is detected
4141
if edge == NeoTrellis.EDGE_RISING:
4242
trellis.color(xcoord, ycoord, BLUE)
43-
# turn the LED off when a rising edge is detected
43+
# turn the LED off when a falling edge is detected
4444
elif edge == NeoTrellis.EDGE_FALLING:
4545
trellis.color(xcoord, ycoord, OFF)
4646

examples/neotrellis_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def blink(event):
2727
# turn the LED on when a rising edge is detected
2828
if event.edge == NeoTrellis.EDGE_RISING:
2929
trellis.pixels[event.number] = CYAN
30-
# turn the LED off when a rising edge is detected
30+
# turn the LED off when a falling edge is detected
3131
elif event.edge == NeoTrellis.EDGE_FALLING:
3232
trellis.pixels[event.number] = OFF
3333

0 commit comments

Comments
 (0)