Since there is no CIrcuitPython binary specific to the Seeed XIAO RP2040, I just used the CircuitPython binary for the Raspberry Pi Pico, as suggested on the Wiki.
See https://wiki.seeedstudio.com/XIAO-RP2040-with-CircuitPython/ and https://circuitpython.org/board/raspberry_pi_pico/
Now the thing is, the various board-specific binaries have definitions for such things as SDA and SCL for I2C so that constructors can be a little simpler. They might have a pin definition supplied for an on-board Neopixel or an on-board LED.
That means you have to know the particular GPIO pin used for a function you are going to use since those definitions may not exist for the Pico (or, may be to different pins). (For Pico, they are called GPxx, so the XIAO RP2040 SDA signal is RP2040 pin GP6, for example. You also have to understand that GP6 and GP7 can be used as SDA and SCL for RP2040 I2C module i2c1, not i2c0)
I attached a few files that can be used to test your CircuitPython installation.
PinMap.py shows the pin names that Pico uses. You can figure out from the XIAO RP2040 schematic the GPIO pins that are brought out to the XIAO physical package. Blink.py blinks the XIAO RP2040 built-in LED
NeoPixel_test.py makes the Red led on the builtin Neopixel device blink. (You have to install the neopixel library from the Adafruit CircuitPython bundle, whose link you can find on the Adafruit page.
I run Thonny for CircuitPython and for MicroPython on the several boards that I use Python on.
Regards,
Dave
Footnote: Actually I usually run MicroPython (the Raspberry Pi Pico version) but I decided to check out CircuitPython running on my QtPy RP2040 and, just for kicks, installed it on one of my XIAO RP2040 boards. I’m no Python expert, but if you have any questions, I’ll try to see if we can figure things out together. (I was kind of hoping a “real” Python expert would chime in, but…)
CircuitPythonCode.zip (1.6 KB)