You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. It's a shame I can't use atexit for this. I'm thinking mini-game code that potentially has a big while loop, and I'm assuming the soft exit doesn't come through as an exception that I could handle with a finally clause. Are there any good patterns for that?
Thanks. It's a shame I can't use atexit for this. I'm thinking mini-game code that potentially has a big while loop, and I'm assuming the soft exit doesn't come through as an exception that I could handle with a finally clause. Are there any good patterns for that?
The MicroPython merge brought in atexit functionality but they lumped it into sys so I disabled it. It shouldn't be too hard to move and enable.
You may be interested in #3454 which was done with game code in mind too. It has mechanics for what to do after an exception.
Firmware
Adafruit CircuitPython 6.2.0 on 2021-04-05; Raspberry Pi Pico with rp2040
Code/REPL
Behavior
It runs the first time, but if I make changes and save (causing soft reset) or Ctrl-D for a soft reset, I get the following:
Description
Only seen so far with this SPI setup - but this is my first CircuitPython/Pico SPI device usage.
The text was updated successfully, but these errors were encountered: