Review Seeed XIAO RP2040 Review: $5 Brain Food

evildave_666

Prominent
Oct 2, 2021
2
1
510
The reason you were unable to get the onboard neopixel to operate was most likely you did not enable power to it via GPIO10 first. This is done on a lot of boards in order to enable low power operation. Its clear if you look at the schematic.
 
Last edited:

harrisbw

Distinguished
Dec 24, 2009
3
0
18,510
import time
import board
import neopixel
import digitalio

ledpwr = digitalio.DigitalInOut(board.GP11)
ledpwr.direction = digitalio.Direction.OUTPUT
ledpwr.value = 1

pixels = neopixel.NeoPixel(board.GP12,1)

WHITE = (200, 200, 200)
RED = (200, 0, 0)
GREEN = (0, 200, 0)
BLUE = (0, 0, 200)
OFF = (0, 0, 0)
DELAY = (0.140)

while True:
pixels.fill(WHITE)
time.sleep(DELAY)
pixels.fill(RED)
time.sleep(DELAY)
pixels.fill(GREEN)
time.sleep(DELAY)
pixels.fill(BLUE)
time.sleep(DELAY)
 
Jan 4, 2022
1
0
10
I decided to write this tutorial because the manufacturer’s website contains some errors regarding the use of this board with Circuitpython. Although the site contains the information that the firmware for the board is the same as that of the Raspberry Pi Pico, I noticed that some features were not present. Especially when we use the expansion board. The examples on the Seeed Wiki are mostly suitable for use with the Arduino IDE. But the examples for Circuitpython are not well documented.

https://www.pcbway.com/project/shareproject/Circuitpython_on_Seeed_XIAO_RP2040_efd3eaef.html