Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Last active May 3, 2025 22:50
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

Make a CP device stop auto-reloading code; for CircuitPython 8 or better.

import supervisor supervisor.runtime.autoreload = False print(f"{supervisor.runtime.autoreload=}")
@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