7/23/22, 9:39 PM
Seeeduino XIAO Expansion board - Seeed Wiki
https://wiki.seeedstudio.com/Seeeduino-XIAO-Expansion-Board/
27/66
Step 2
Paste the code on the
main
le then save it, you will see the
orange LED blinking on the Seeeduino XIAO board.
Code
MicroSD card for circuitpython
The Seeedruino XIAO build-in about 40 KB ash, but it may have not
enough space to store the large size python code le, fortunately,
Seeeduino XIAO expansion board built-in an MicroSD card slot for
extending the store space, so you can follow this instruction to
learn how to run the circuitpython on the MicroSD card.
[https://circuitpython.readthedocs.io/en/6.0.x/README.html#behavior]
1
import
time
2
import
board
3
from
digitalio
import
DigitalInOut, Direction
4
5
led = DigitalInOut(board.D13)
6
led.direction = Direction.OUTPUT
7
8
while
True
:
9
led.value =
True
10
time.sleep(
1
)
11
led.value =
False
12
time.sleep(
1
)
Note
The MicroSD card system format is FAT or exFAT. If you use other MicroSD
card system format that will cause the MicroSD card can not be
recognized.