Xiao SAMD21 and CircuitPython

I am trying to get circuitpython to work. I am on a Mac.

I put the board in bootloader mode (2 fast resets) and I dragged adafruit-circuitpython-seeeduino_xiao-en_US-7.3.2.uf2 into the “Arduino” device. It turns into “CIRCUITPY”.

I add the script:

import time
import board
from digitalio import DigitalInOut, Direction

led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT

while True:
led.value = True
led.value = False

to main.py in Mu Editor, and save. No blinking led…

I tried updating the bootloader with update-bootloader-XIAO_m0-v3.14.0.uf2 and repeated the above, no luck.

Any ideas?


I got it to work by using an earlier version of the SAMD21 CircuitPython (7.0)

In the REFL, enter

import board

Use board.LED_INVERTED (Works for me with 7.3.2)

Also, in CircuitPython Essentials there is a neat “PinMap.py” that can be a learning experience.



That did the trick! I switched back to 7.3. I am off and running and exploring the “essentials”. These little modules with circuitpython rock!

Thanks Dave


1 Like