8000 displayio.TileGrid does not document limitation to 255 frames · Issue #6149 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
displayio.TileGrid does not document limitation to 255 frames #6149
Closed
@lowasser

Description

@lowasser

TileGrid.setitem enforces, but does not document, a limitation to 255 tile elements.

This limitation is not great for my needs, but the failure to document what's going on, or provide a more informative error message, led to a merry hour of debugging. TileGrid also doesn't allow introspection in any way of how many tiles are available to be addressed, so I was extremely confused until I finally just tried "keep setting tiles up to the highest index valid until we crash," at which point I discovered the crash at 256, which immediately suggested a problem with TileGrid, not the design of the bitmap I was indexing into.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0