Continued documentation tweaking

This commit is contained in:
Dave Astels 2017-09-30 15:21:22 -04:00
parent ef113064f0
commit 5d6ab47947
2 changed files with 18 additions and 18 deletions

View file

@ -26,23 +26,23 @@ This is easily achieved by downloading
Usage Example
=============
```
import board
import dotstar_featherwing
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
xmas = ["..y.w......w",
"..G.....w...",
"..G..w....w.",
".GGG...w....",
"GGGGG.......",
"wwwwwwwwwwww"]
xmas_colours = {'w': (0x20, 0x20, 0x20),
'W': (0xFF, 0xFF, 0xFF),
'G': (0x00, 0x20, 0x00),
'y': (0x20, 0x20, 0x00),
'Y': (0xFF, 0xFF, 0x00)}
.. code-block:: python
import board
import dotstar_featherwing
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
xmas = ["..y.w......w",
"..G.....w...",
"..G..w....w.",
".GGG...w....",
"GGGGG.......",
"wwwwwwwwwwww"]
xmas_colours = {'w': (0x20, 0x20, 0x20),
'W': (0xFF, 0xFF, 0xFF),
'G': (0x00, 0x20, 0x00),
'y': (0x20, 0x20, 0x00),
'Y': (0xFF, 0xFF, 0x00)}
wing.display_coloured_image(xmas, xmas_colours)
```

View file

@ -1,5 +1,5 @@
.. If you created a package, create one automodule per module in the package.
.. automodule:: adafruit_dotstar_featherwing
.. automodule:: dotstar_featherwing
:members: