Skip to content

Matrix pixel access not returning current value #20

@caternuson

Description

@caternuson

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
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions