Skip to main content

Seeed Studio XIAO nRF52840 with CircuitPython

CircuitPython is a programming language designed to simplify experimenting and learning to program on low-cost microcontroller boards. It makes getting started easier than ever with no upfront desktop downloads needed. Once you get your board set up, open any text editor, and get started editing code. It's that simple.

Getting Started

Installation

Step 1 Enter Bootloader Mode

Before we install CircuitPython to Seeed Studio XIAO nRF52840, it requires bootloader mode. We can enter the bootloadrer mode by the clicking Reset Button twice :

pir

Then the disk will show up:

pir

Step 2 Downloard the firmware for Seeed Studio XIAO nRF52840

Step 3 Drag the .urf file to the disk driver("XIAO-SENSE")

pir

Step 4 Check the disk driver if the name has changed to "CIRCUITPY".

pir

Now you have successfully install the CircuitPython to the Seeed Studio XIAO nRF52840 board.

Application

Step 1 Download CircuitPython editor - Mu Editor and open it

Step 2 Click "Mode" and chose the mode as "CircuitPython"

pir

Step 3 Copy and upload the following codes:

"""Example for Seeed Studio XIAO nRF52840. Blinks the built-in LED."""
import time
import board
import digitalio

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT

while True:
led.value = True
time.sleep(0.5)
led.value = False
time.sleep(0.5)

Click "Serial" to open REPL, save the codes to REPL as 'code.py' or 'main.py'

pir

The user LED on Seeed Studio XIAO nRF52840 then will flash.

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...