Skip to content

Commit 5d6ab47

Browse files
committed
Continued documentation tweaking
1 parent ef11306 commit 5d6ab47

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

README.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ This is easily achieved by downloading
2626
Usage Example
2727
=============
2828

29-
```
30-
import board
31-
import dotstar_featherwing
32-
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
33-
34-
xmas = ["..y.w......w",
35-
"..G.....w...",
36-
"..G..w....w.",
37-
".GGG...w....",
38-
"GGGGG.......",
39-
"wwwwwwwwwwww"]
40-
41-
xmas_colours = {'w': (0x20, 0x20, 0x20),
42-
'W': (0xFF, 0xFF, 0xFF),
43-
'G': (0x00, 0x20, 0x00),
44-
'y': (0x20, 0x20, 0x00),
45-
'Y': (0xFF, 0xFF, 0x00)}
29+
.. code-block:: python
30+
import board
31+
import dotstar_featherwing
32+
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
33+
34+
xmas = ["..y.w......w",
35+
"..G.....w...",
36+
"..G..w....w.",
37+
".GGG...w....",
38+
"GGGGG.......",
39+
"wwwwwwwwwwww"]
40+
41+
xmas_colours = {'w': (0x20, 0x20, 0x20),
42+
'W': (0xFF, 0xFF, 0xFF),
43+
'G': (0x00, 0x20, 0x00),
44+
'y': (0x20, 0x20, 0x00),
45+
'Y': (0xFF, 0xFF, 0x00)}
4646
4747
wing.display_coloured_image(xmas, xmas_colours)
4848
```

api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
.. If you created a package, create one automodule per module in the package.
33
4-
.. automodule:: adafruit_dotstar_featherwing
4+
.. automodule:: dotstar_featherwing
55
:members:

0 commit comments

Comments
 (0)