File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,19 @@ Usage Example
64
64
matrix.show()
65
65
66
66
# Set a pixel in the origin 0,0 position.
67
- matrix.pixel( 0, 0, 1)
67
+ matrix.pixel[ 0, 0] = 1
68
68
# Set a pixel in the middle 8, 4 position.
69
- matrix.pixel( 8, 4, 1)
69
+ matrix.pixel[ 8, 4] = 1
70
70
# 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
+
72
80
matrix.show()
73
81
74
82
Contributing
@@ -123,4 +131,4 @@ Now, once you have the virtual environment activated:
123
131
124
132
This will output the documentation to ``docs/_build/html ``. Open the index.html in your browser to
125
133
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.
You can’t perform that action at this time.
0 commit comments