We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afd12d1 + d467252 commit ec398cfCopy full SHA for ec398cf
README.rst
@@ -28,15 +28,17 @@ This is easily achieved by downloading
28
Usage Example
29
=============
30
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()
+.. 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
40
+ # show the pixel
41
+ dot.show()
42
43
Contributing
44
============
0 commit comments