adafruit / Adafruit_CircuitPython_HT16K33

Adafruit CircuitPython driver for the HT16K33, a LED matrix driver IC.
MIT License
41 stars 29 forks source link

README needs updating for new syntax #21

Closed caternuson closed 6 years ago

caternuson commented 6 years ago

This is no longer correct usage:

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

should be:

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

Fixed with #24