From 45014853e642452e5f337750dcfd4b300518a61b Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Tue, 10 Jan 2023 14:29:02 +0000 Subject: [PATCH] update example to match docs --- micropython/examples/breakout_bme68x/bme68x_demo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/micropython/examples/breakout_bme68x/bme68x_demo.py b/micropython/examples/breakout_bme68x/bme68x_demo.py index 64f09b08..acae036e 100644 --- a/micropython/examples/breakout_bme68x/bme68x_demo.py +++ b/micropython/examples/breakout_bme68x/bme68x_demo.py @@ -11,12 +11,12 @@ PINS_PICO_EXPLORER = {"sda": 20, "scl": 21} i2c = PimoroniI2C(**PINS_BREAKOUT_GARDEN) -bmp = BreakoutBME68X(i2c) +bme = BreakoutBME68X(i2c) # If this gives an error, try the alternative address -# bmp = BreakoutBME68X(i2c, 0x77) +# bme = BreakoutBME68X(i2c, 0x77) while True: - temperature, pressure, humidity, gas, status, _, _ = bmp.read() + 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))