File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ Usage Example
3838
3939.. code-block :: python
4040
41- # Import all board pins.
42- from board import *
41+ # Import all board pins and bus interface .
42+ import board
4343 import busio
4444
4545 # Import the HT16K33 LED matrix module.
4646 from adafruit_ht16k33 import matrix
4747
4848 # Create the I2C interface.
49- i2c = busio.I2C(SCL, SDA)
49+ i2c = busio.I2C(board. SCL, board. SDA)
5050
5151 # Create the matrix class.
5252 # This creates a 16x8 matrix:
@@ -62,11 +62,11 @@ Usage Example
6262 matrix.fill(0)
6363
6464 # Set a pixel in the origin 0,0 position.
65- matrix.pixel [0, 0] = 1
65+ matrix[0, 0] = 1
6666 # Set a pixel in the middle 8, 4 position.
67- matrix.pixel [8, 4] = 1
67+ matrix[8, 4] = 1
6868 # Set a pixel in the opposite 15, 7 position.
69- matrix.pixel [15, 7] = 1
69+ matrix[15, 7] = 1
7070 matrix.show()
7171
7272 # Change the brightness
You can’t perform that action at this time.
0 commit comments