Skip to content

Conversation

Gadgetoid
Copy link
Member

This is just a straight copy and paste of BME68X, dropping in the BME69X Sensor API and wishing upon a star that it works.

@Gadgetoid Gadgetoid force-pushed the driver/bme690 branch 2 times, most recently from 80bc5d3 to 859bbad Compare March 13, 2025 14:11
@Gadgetoid
Copy link
Member Author

Note to self: the builds here would not flash on my board. That suggests that the current main builds are non-functional 😬

@helgibbons
Copy link
Contributor

helgibbons commented Mar 20, 2025

The Pico W, Enviro and Tufty builds seem to be working OK for me, with:

"""BME69X demo

Demo of how to read the BME690 sensor.
"""

import time
from breakout_bme69x import BreakoutBME69X, STATUS_HEATER_STABLE

bme = BreakoutBME69X(machine.I2C(0), 0x76)
# If this gives an error, try the alternative address
# bme = BreakoutBME69X(machine.I2C(0), 0x77)

while True:
    temperature, pressure, humidity, gas, status, _, _ = bme.read()
    heater = "Stable" if status & STATUS_HEATER_STABLE else "Unstable"
    print("{:0.2f}c, {:0.2f}Pa, {:0.2f}%, {:0.2f} Ohms, Heater: {}".format(
        temperature, pressure, humidity, gas, heater))
    time.sleep(1.0)

@Gadgetoid Gadgetoid changed the base branch from main to feature/picovector2-and-layers March 28, 2025 10:30
@Gadgetoid Gadgetoid force-pushed the feature/picovector2-and-layers branch from 60b1bda to dbd7ae9 Compare March 28, 2025 10:31
This is just a straight copy and paste of BME68X, dropping in the BME69X
Sensor API and wishing upon a star that it works.
@Gadgetoid Gadgetoid merged commit 4ddd849 into feature/picovector2-and-layers Apr 14, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants