Skip to content

Commit 8a88b3b

Browse files
committed
update circuitpython dvi sock demo
received guide feedback that this example throws a memoryerror with current circuitpython on the original pico. updated to only run some of the examples for the rp2040 pico, while still running all of them for the rp2350 pico
1 parent 4a4e4bc commit 8a88b3b

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)