Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Last active May 7, 2024 08:38
Show Gist options
  • Save RobCranfill/e5ee81fd95c5752a6e71d536cb02a1b3 to your computer and use it in GitHub Desktop.
Save RobCranfill/e5ee81fd95c5752a6e71d536cb02a1b3 to your computer and use it in GitHub Desktop.
Turn off automatic reload of the code in CircuitPython
# To make a CP device stop auto-reloading code,

<code>
import supervisor
supervisor.runtime.autoreload = False  # CirPy 8 and above
print("supervisor.runtime.autoreload = False")
<code>
@sjev
Copy link

sjev commented May 7, 2024

tnaks! would be even better to

print(f"{supervisor.runtime.autoreload=}")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment