Closed Miner34dev closed 11 months ago
Init the I2C with explicit pins using busio.I2C()
. The pico doesn't have a default set of pins labeled for I2C.
Ok, now it works.
import time
import board
import busio
import adafruit_msa3xx
i2c = busio.I2C(board.GP1, board.GP0)
msa = adafruit_msa3xx.MSA301(i2c)
Hello, i'm trying to use a msa301 on a RPi Pico running Micropython. Sadly, when i try to run the first example, it trows an error:
I reinstalled all the libraries 3 times, but it still doesn't work :disappointed:. There is the code i was trying to execute:
Can somebody help me?