Continued documentation tweaking
This commit is contained in:
parent
ef113064f0
commit
5d6ab47947
2 changed files with 18 additions and 18 deletions
30
README.rst
30
README.rst
|
|
@ -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)
|
||||
.. 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 = ["..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)}
|
||||
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)
|
||||
```
|
||||
|
|
|
|||
2
api.rst
2
api.rst
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue