User Manual

5. Drag the appropriate latest release CircuitPython (https://adafru.it/Amd) .uf2 file to the
boardname
BOOT drive.
It should reboot automatically and you should see CIRCUITPY in your file explorer again.
If you haven't already downloaded the latest release of CircuitPython for your board, check out the installation
page (https://adafru.it/Amd) You'll also need to install your libraries and code!
Old Way: For non-Express Boards without a UF2 bootloader (Feather M0 Basic Proto,
Feather Adalogger, Arduino Zero):
If you are running a version of CircuitPython before 2.3.0, and you don't want to upgrade, or you can't get to the REPL,
you can do this.
Just follow these directions to reload CircuitPython using bossac (https://adafru.it/Bed), which will erase and re-create
CIRCUITPY .
Running Out of File Space on Non-Express Boards
The file system on the board is very tiny. (Smaller than an ancient floppy disk.) So, its likely you'll run out of space but
don't panic! There are a couple ways to free up space.
The board ships with the Windows 7 serial driver too! Feel free to delete that if you don't need it or have already
installed it. Its ~12KiB or so.
Delete something!
The simplest way of freeing up space is to delete files from the drive. Perhaps there are libraries in the lib folder that
you aren't using anymore or test code that isn't in use. Don't delete the lib folder completely, though, just remove
what you don't need.
Use tabs
One unique feature of Python is that the indentation of code matters. Usually the recommendation is to indent code
with four spaces for every indent. In general, we recommend that too. However, one trick to storing more human-
readable code is to use a single tab character for indentation. This approach uses 1/4 of the space for indentation and
can be significant when we're counting bytes.
Mac OSX loves to add extra files.
Luckily you can disable some of the extra hidden files that Mac OSX adds by running a few commands to disable
search indexing and create zero byte placeholders. Follow the steps below to maximize the amount of space available
on OSX:
Prevent & Remove Mac OSX Hidden Files
© Adafruit Industries https://learn.adafruit.com/adafruit-metro-m4-express-featuring-atsamd51 Page 104 of 172