adafruit / Adafruit_CircuitPython_HT16K33

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

Matrix pixel access not returning current value #20

Closed caternuson closed 6 years ago

caternuson commented 6 years ago

Should be able to use syntax matrix[x,y] to both set and query the pixel value at [x,y]. It's working as expected for setting, but query is not. In the example below, both sets turned on the expected pixel. However, only [0,0] returned the correct value when queried.

Adafruit CircuitPython 3.0.1 on 2018-08-21; Adafruit Feather M0 Express with samd21g18
>>> import board, busio
>>> from adafruit_ht16k33.matrix import Matrix8x8
>>> i2c = busio.I2C(board.SCL, board.SDA)
>>> matrix = Matrix8x8(i2c)
>>> matrix.fill(0)
>>> matrix[0,0]
False
>>> matrix[0,0] = 1
>>> matrix[0,0]
True
>>> matrix[3,2]
False
>>> matrix[3,2] = 1
>>> matrix[3,2]
False
>>>