I am trying to setup the BME688 sensor bought from Pimoroni but when I run the test code below I get the following error message:
ImportError: no module named ‘breakout_bme68x’
The code I am using is:
“”“BME688 / BME680 demo
This demo will work for both the BME680 and BME688.
“””
import time
from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE
from pimoroni_i2c import PimoroniI2C
Ah OK - is that a version of MicroPython downloaded from the Raspberry Pi website? You’ll need to install our custom MicroPython version to have the BME688 drivers built in: Releases · pimoroni/pimoroni-pico · GitHub. You’ll need the Pico flavoured image - here’s a direct link.
Note that the example code may throw an error if you don’t have the breakout physically connected to the Pico, either by Qw/ST or by some other means.