Hi. Have installed CircuitPython on a Xiao Pico (RP2040), should be compatible with Feather.
Have installed a Grove shield for this, attaching a DHT11 sensor, and the right libraries.
Still, am getting ": no module named 'smbus2'"
What am I missing here?
:-)
Adafruit CircuitPython 7.2.5 on 2022-04-06; Seeeduino XIAO RP2040 with rp2040
>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "/lib/grove/grove_temperature_humidity_aht20.py", line 33, in <module>
File "/lib/grove/i2c.py", line 32, in <module>
ImportError: no module named 'smbus2'
Raspberry Pi Pico - RP2040
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15699
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Raspberry Pi Pico - RP2040
It would seem that the grove libraries aren't CircuitPython compatible.
Dave
There is a CircuitPython library in the bundle for that sensor: adafruit_ahtx0.py. See https://learn.adafruit.com/adafruit-aht ... -3064498-8Python library for Seeedstudio Grove Devices on embeded Linux platform, especially good on below platforms:
Coral Dev Board (Wiki)
NVIDIA Jetson Nano (Wiki)
Raspberry Pi (Wiki)
Dave
- freddyboomboom
- Posts: 267
- Joined: Wed Feb 16, 2022 7:55 pm
Re: Raspberry Pi Pico - RP2040
Make sure you are using the Circuitpython uf2 file from Seeedstudio themselves. Circtuipython.org does not have a build of Circuitpython for that board.
The filename you should be using is "XIAO-RP2040-CircuitPython.uf2"
Using anything else could have unintended consequences.
Also, the Grove Shield is set up for the pinouts of the Raspberry Pi Pico board, and may not be compatible with the XIAO RP2040.
The filename you should be using is "XIAO-RP2040-CircuitPython.uf2"
Using anything else could have unintended consequences.
Also, the Grove Shield is set up for the pinouts of the Raspberry Pi Pico board, and may not be compatible with the XIAO RP2040.
Please be positive and constructive with your questions and comments.