Datasheet

Recommended
only
with particular settings or with add-ons:
The PyCharm IDE (https://adafru.it/xNC) is safe if "Safe Write" is turned on in Settings->System Settings-
>Synchronization (true by default).
If you are using Atom (https://adafru.it/fMG), install this package (https://adafru.it/Be8) so that it will always write
out all changes to files on CIRCUITPY .
SlickEdit (https://adafru.it/DdP) works only if you add a macro to flush the disk (https://adafru.it/ven).
We
don't
recommend these editors:
notepad (the default Windows editor) and Notepad++ can be slow to write, so we recommend the editors above!
If you are using notepad, be sure to eject the drive (see below)
IDLE does not force out changes immediately
nano (on Linux) does not force out changes
Anything else - we haven't tested other editors so please use a recommended one!
2. Eject or Sync the Drive After Writing
If you are using one of our not-recommended-editors, not all is lost! You can still make it work.
On Windows, you can Eject or Safe Remove the CIRCUITPY drive. It won't actually eject, but it will force the operating
system to save your file to disk. On Linux, use the sync command in a terminal to force the write to disk.
Oh No I Did Something Wrong and Now The CIRCUITPY Drive Doesn't Show Up!!!
Don't worry! Corrupting the drive isn't the end of the world (or your board!). If this happens, follow the steps found
on the Troubleshooting page of every board guide to get your board up and running again.
Back to Editing Code...
Now! Let's try editing the program you added to your board. Open your code.py file into your editor. We'll make a
simple change. Change the first 0.5 to 0.1 . The code should look like this:
Leave the rest of the code as-is. Save your file. See what happens to the LED on your board? Something changed! Do
you know why? Let's find out!
Exploring Your First CircuitPython Program
First, we'll take a look at the code we're editing.
Here is the original code again:
import board
import digitalio
import time
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True
time.sleep(0.1)
led.value = False
time.sleep(0.5)
© Adafruit Industries
https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-
circuitpython
Page 65 of 199