Skip to content

Commit b240004

Browse files
author
caternuson
committed
update example in README.rst
1 parent 3989a09 commit b240004

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,19 @@ Usage Example
6464
matrix.show()
6565
6666
# Set a pixel in the origin 0,0 position.
67-
matrix.pixel(0, 0, 1)
67+
matrix.pixel[0, 0] = 1
6868
# Set a pixel in the middle 8, 4 position.
69-
matrix.pixel(8, 4, 1)
69+
matrix.pixel[8, 4] = 1
7070
# Set a pixel in the opposite 15, 7 position.
71-
matrix.pixel(15, 7, 1)
71+
matrix.pixel[15, 7] = 1
72+
matrix.show()
73+
74+
# Change the brightness
75+
matrix.brightness = 8
76+
77+
# Set the blink rate
78+
matrix.blink_rate = 2
79+
7280
matrix.show()
7381
7482
Contributing
@@ -123,4 +131,4 @@ Now, once you have the virtual environment activated:
123131
124132
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
125133
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
126-
locally verify it will pass.
134+
locally verify it will pass.

0 commit comments

Comments
 (0)