Update bme68x_demo.py

This commit is contained in:
Paul Beech 2022-08-02 16:17:08 +01:00 committed by Phil Howard
parent 832a8e261a
commit 553cedc80e
1 changed files with 3 additions and 0 deletions

View File

@ -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()