Skip to content

Commit 41a28c1

Browse files
committed
Simpletest completed.
Completed the simpletest example script, along with a provided jpg.
1 parent dbb20f5 commit 41a28c1

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

examples/imageload_jpg_simpletest.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: 2024 Channing Ramos
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
import board
6+
import displayio
7+
import adafruit_imageload
8+
9+
group = displayio.Group()
10+
board.DISPLAY.root_group = group
11+
12+
image, color_converter = adafruit_imageload.load("images/jpg_test.jpg")
13+
14+
tile_grid = displayio.TileGrid(image, pixel_shader=color_converter)
15+
group.append(tile_grid)
16+
17+
while True:
18+
pass

examples/images/jpg_test.jpg

5.34 KB
Loading

examples/images/jpg_test.jpg.license

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: 2024 Channing Ramos
2+
# SPDX-License-Identifier: MIT

0 commit comments

Comments
 (0)