Skip to content

Matrix pixel access not returning current value #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
caternuson opened this issue Aug 30, 2018 · 0 comments
Closed

Matrix pixel access not returning current value #20

caternuson opened this issue Aug 30, 2018 · 0 comments

Comments

@caternuson
Copy link
Contributor

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
>>> 
caternuson pushed a commit to caternuson/Adafruit_CircuitPython_HT16K33 that referenced this issue Aug 30, 2018
tannewt added a commit that referenced this issue Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant