Skip to content

Commit ec398cf

Browse files
authored
Merge pull request #12 from dglaude/patch-1
This make Python code readable.
2 parents afd12d1 + d467252 commit ec398cf

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@ This is easily achieved by downloading
2828
Usage Example
2929
=============
3030

31-
import adafruit_dotstar as dotstar
32-
import board
33-
from led_animation import color
34-
# setup the pixel
35-
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=.2)
36-
# set the color by name
37-
dot[0] = color.GOLD
38-
# show the pixel
39-
dot.show()
31+
.. code-block:: python
32+
33+
import adafruit_dotstar as dotstar
34+
import board
35+
from led_animation import color
36+
# setup the pixel
37+
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=.2)
38+
# set the color by name
39+
dot[0] = color.GOLD
40+
# show the pixel
41+
dot.show()
4042
4143
Contributing
4244
============

0 commit comments

Comments
 (0)