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

updated README #24

Merged
merged 1 commit into from
Sep 12, 2018
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
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ Usage Example

.. code-block :: python

# Import all board pins.
from board import *
# Import all board pins and bus interface.
import board
import busio

# Import the HT16K33 LED matrix module.
from adafruit_ht16k33 import matrix

# Create the I2C interface.
i2c = busio.I2C(SCL, SDA)
i2c = busio.I2C(board.SCL, board.SDA)

# Create the matrix class.
# This creates a 16x8 matrix:
Expand All @@ -62,11 +62,11 @@ Usage Example
matrix.fill(0)

# Set a pixel in the origin 0,0 position.
matrix.pixel[0, 0] = 1
matrix[0, 0] = 1
# Set a pixel in the middle 8, 4 position.
matrix.pixel[8, 4] = 1
matrix[8, 4] = 1
# Set a pixel in the opposite 15, 7 position.
matrix.pixel[15, 7] = 1
matrix[15, 7] = 1
matrix.show()

# Change the brightness
Expand Down