Skip to content

Commit 5417edb

Browse files
authored
Merge pull request #3225 from adafruit/dvisock_update
update circuitpython dvi sock demo
2 parents 4a4e4bc + 8a88b3b commit 5417edb

File tree

1 file changed

+13
-6
lines changed
  • Pico_DVI_Sock_Examples/CircuitPython

1 file changed

+13
-6
lines changed

Pico_DVI_Sock_Examples/CircuitPython/code.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,16 @@ def sensor_values():
315315
while True:
316316
show_shapes()
317317
sine_chart()
318-
widget0()
319-
widget1()
320-
text_align()
321-
custom_font()
322-
bitmap_example()
323-
sensor_values()
318+
# the RP2040 Pico runs into MemoryErrors trying to
319+
# run all of the examples
320+
if board.board_id == "raspberry_pi_pico":
321+
text_align()
322+
bitmap_example()
323+
sensor_values()
324+
else:
325+
widget0()
326+
widget1()
327+
text_align()
328+
custom_font()
329+
bitmap_example()
330+
sensor_values()

0 commit comments

Comments
 (0)