From 553cedc80e39f6175c096fe9a4e4cad796a801d5 Mon Sep 17 00:00:00 2001 From: Paul Beech Date: Tue, 2 Aug 2022 16:17:08 +0100 Subject: [PATCH] Update bme68x_demo.py --- micropython/examples/breakout_bme68x/bme68x_demo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/micropython/examples/breakout_bme68x/bme68x_demo.py b/micropython/examples/breakout_bme68x/bme68x_demo.py index cf107f39..64f09b08 100644 --- a/micropython/examples/breakout_bme68x/bme68x_demo.py +++ b/micropython/examples/breakout_bme68x/bme68x_demo.py @@ -10,7 +10,10 @@ PINS_BREAKOUT_GARDEN = {"sda": 4, "scl": 5} PINS_PICO_EXPLORER = {"sda": 20, "scl": 21} i2c = PimoroniI2C(**PINS_BREAKOUT_GARDEN) + bmp = BreakoutBME68X(i2c) +# If this gives an error, try the alternative address +# bmp = BreakoutBME68X(i2c, 0x77) while True: temperature, pressure, humidity, gas, status, _, _ = bmp.read()