Skip to content

Commit 5c6cf1e

Browse files
authored
Merge pull request #1679 from FoamyGuy/voice2josnx_cp7
Voice2json cp7 updates Guide changes made
2 parents a5bfa14 + c989ae1 commit 5c6cf1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Voice2Json_Edge_Detection/demo.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,14 @@ def load_image(path):
5353
"Load an image from the path"
5454
if len(splash):
5555
splash.pop()
56+
# CircuitPython 6 & 7 compatible
5657
bitmap = displayio.OnDiskBitmap(open(path, "rb"))
5758
sprite = displayio.TileGrid(bitmap, pixel_shader=getattr(bitmap, 'pixel_shader', displayio.ColorConverter()))
59+
60+
# # CircuitPython 7+ compatible
61+
# bitmap = displayio.OnDiskBitmap(path)
62+
# sprite = displayio.TileGrid(bitmap, pixel_shader=bitmap.pixel_shader)
63+
5864
splash.append(sprite)
5965

6066
def change_light_color(lightname, color):
@@ -99,7 +105,7 @@ def process_output(line):
99105
backlight_pin=tft_lite,
100106
)
101107

102-
splash = displayio.Group(max_size=10)
108+
splash = displayio.Group()
103109
display.show(splash)
104110

105111
for output_line in shell_command(listen_command):

0 commit comments

Comments
 (0)