Skip to content

Commit 8d2d397

Browse files
committed
add main loop in displayio examples
1 parent a4c6e48 commit 8d2d397

7 files changed

Lines changed: 28 additions & 0 deletions

File tree

CircuitPython_displayio/displayio_display_driver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@
3737
group = displayio.Group()
3838
group.append(tile_grid)
3939
display.show(group)
40+
41+
# Loop forever so you can enjoy your image
42+
while True:
43+
pass

CircuitPython_displayio/displayio_display_manual.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@
6464
group = displayio.Group()
6565
group.append(tile_grid)
6666
display.show(group)
67+
68+
# Loop forever so you can enjoy your image
69+
while True:
70+
pass

CircuitPython_displayio/displayio_font.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818

1919
# Show it
2020
display.show(text_area)
21+
22+
# Loop forever so you can enjoy your text
23+
while True:
24+
pass

CircuitPython_displayio/displayio_parallelbus.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@
6262
group = displayio.Group()
6363
group.append(tile_grid)
6464
display.show(group)
65+
66+
# Loop forever so you can enjoy your image
67+
while True:
68+
pass

CircuitPython_displayio/displayio_pixels.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@
3030
for x in range(150, 170):
3131
for y in range(100, 110):
3232
bitmap[x, y] = 1
33+
34+
# Loop forever so you can enjoy your image
35+
while True:
36+
pass

CircuitPython_displayio/displayio_text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818

1919
# Show it
2020
display.show(text_area)
21+
22+
# Loop forever so you can enjoy your image
23+
while True:
24+
pass

CircuitPython_displayio/displayio_tilegrids.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@
6464

6565
# Add the Group to the Display
6666
display.show(group)
67+
68+
# Loop forever so you can enjoy your image
69+
while True:
70+
pass

0 commit comments

Comments
 (0)