Skip to content


"The easiest way to program microcontrollers. CircuitPython is a programming language designed to simplify experimenting and learning to code on low-cost microcontroller boards. " -


Disable CIRCUITPYTHON usb drive

Create a file in the drive with the following contents:

import storage


To re-enable the drive, use the serial console to access the repl and comment out all of the contents of by running:

import storage

with open('', mode='r') as f:
    contents = [f'#{x}' for x in f.readlines()]

with open('', mode='w') as f:

or just delete the file with:

import os, storage
storage.remount('/', readonly=False)

Paste mode

You can enter paste mode by pressing CTRL-E. This lets you paste in multi-line code that will not be interpreted until you press CTRL-D. This also lets you paste code that has spaces init without the REPL saying your syntax is invalid due to indentation problems or other whitespace nuances of the normal REPL.

See also