File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Introduction
13
13
:target: https://travis-ci.org/apatt/CircuitPython_LED_Animation
14
14
:alt: Build Status
15
15
16
- .. todo :: Describe what the library does.
16
+ Perform a variety of LED animation tasks
17
17
18
18
Dependencies
19
19
=============
@@ -28,7 +28,15 @@ This is easily achieved by downloading
28
28
Usage Example
29
29
=============
30
30
31
- .. todo :: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
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()
32
40
33
41
Contributing
34
42
============
You can’t perform that action at this time.
0 commit comments