I have a RasPi Pico with CircuitPython installed. I have copied the adafruit_bme280 library "adafruit_bme280.mpy" to \lib on my Pico. I am stepping into what I am trying to do via the REPL interface. The following throws "AttributeError: 'module' object has no attribute 'SCL'". Not sure where to go from here, from what I have read maybe I have the wrong board module installed? Thanks for the help!
Code: Select all
import board
import digitalio
import busio
import adafruit_bme280
i2c = busio.I2C(board.SCL, board.SDA)