Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This make Python code readable. #12

Merged
merged 1 commit into from
Jan 29, 2020
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