This make Python code readable.

I guessed the "rst" syntax.
This commit is contained in:
David Glaude 2020-01-29 00:12:07 +01:00 committed by GitHub
parent afd12d108d
commit d467252efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,15 +28,17 @@ This is easily achieved by downloading
Usage Example
=============
import adafruit_dotstar as dotstar
import board
from led_animation import color
# setup the pixel
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=.2)
# set the color by name
dot[0] = color.GOLD
# show the pixel
dot.show()
.. code-block:: python
import adafruit_dotstar as dotstar
import board
from led_animation import color
# setup the pixel
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=.2)
# set the color by name
dot[0] = color.GOLD
# show the pixel
dot.show()
Contributing
============