Most CircuitPython boards have an LED built into the board, which makes testing very easy! Create a blank document named code.py in the
Open the file with your editor of choice (e.g. Notepad on Windows, TextEdit on macOS), and enter the following code:
pin_name = board.L
led = digitalio.DigitalInOut(pin_name)
led.direction = digitalio.Direction.OUTPUT
led.value = True
led.value = False
Note! You might have to change
board.L to another value. Find your board in the list below to see which value you should use.
Adafruit Feather M0 Basic Proto:
Arduino MKR Zero:
SparkFun SAMD21 Dev Breakout:
SparkFun SAMD21 Mini Breakout:
Save the program. Your board should reset automatically, and the onboard LED should begin blinking rapidly.
If you see the LED flashing, you know that CircuitPython is up and running on your board!