Skip to content

Commit 1fc176d

Browse files
authored
Merge pull request #31 from FoamyGuy/fix_simpletest
make simpletest show the image
2 parents 5a5c4db + 5cb5683 commit 1fc176d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/imageload_simpletest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
import board
12
import displayio
23
import adafruit_imageload
34

45
image, palette = adafruit_imageload.load(
56
"images/4bit.bmp", bitmap=displayio.Bitmap, palette=displayio.Palette
67
)
8+
tile_grid = displayio.TileGrid(image, pixel_shader=palette)
9+
10+
group = displayio.Group()
11+
group.append(tile_grid)
12+
board.DISPLAY.show(group)
13+
14+
while True:
15+
pass

0 commit comments

Comments
 (0)