Skip to content

Commit d24f3b8

Browse files
committed
Document TileGrid limitation to tile values 0..255
Closes #6149
1 parent 47d3d0d commit d24f3b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-bindings/displayio/TileGrid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
//| convert the value and its location to a display native pixel color. This may be a simple color
5454
//| palette lookup, a gradient, a pattern or a color transformer.
5555
//|
56+
//| To save RAM usage, tile values are only allowed in the range from 0 to 255 inclusive (single byte values).
57+
//|
5658
//| tile_width and tile_height match the height of the bitmap by default.
5759
//|
5860
//| :param Bitmap,OnDiskBitmap,Shape bitmap: The bitmap storing one or more tiles.

0 commit comments

Comments
 (0)