Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
============
Expand Down