Editing Code
Your code changes are run as soon as the file is done saving.
There's one warning before you continue...
Don't click reset or unplug your board!
The CircuitPython code on your board detects when the files are changed or written
and will automatically re-start your code. This makes coding very fast because you
save, and it re-runs. If you unplug or reset the board before your computer finishes
writing the file to your board, you can corrupt the drive. If this happens, you may lose
the code you've written, so it's important to backup your code to your computer
regularly.
There are a couple of ways to avoid filesystem corruption.
1. Use an editor that writes out the file completely when you save it.
Check out the
Recommended Editors
If you are dragging a file from your host computer onto the CIRCUITPY drive, you
still need to do step 2. Eject or Sync (below) to make sure the file is completely
written.
©Adafruit Industries
To edit code, open the code.py file on your
CIRCUITPY drive into your editor.
Make the desired changes to your code.
Save the file. That's it!
page ()
for details on different editing options.
Page 46 of 263
Need help?
Do you have a question about the ESP32-S3 and is the answer not in the manual?