Update bme68x_demo.py
This commit is contained in:
parent
832a8e261a
commit
553cedc80e
|
@ -10,7 +10,10 @@ PINS_BREAKOUT_GARDEN = {"sda": 4, "scl": 5}
|
||||||
PINS_PICO_EXPLORER = {"sda": 20, "scl": 21}
|
PINS_PICO_EXPLORER = {"sda": 20, "scl": 21}
|
||||||
|
|
||||||
i2c = PimoroniI2C(**PINS_BREAKOUT_GARDEN)
|
i2c = PimoroniI2C(**PINS_BREAKOUT_GARDEN)
|
||||||
|
|
||||||
bmp = BreakoutBME68X(i2c)
|
bmp = BreakoutBME68X(i2c)
|
||||||
|
# If this gives an error, try the alternative address
|
||||||
|
# bmp = BreakoutBME68X(i2c, 0x77)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
temperature, pressure, humidity, gas, status, _, _ = bmp.read()
|
temperature, pressure, humidity, gas, status, _, _ = bmp.read()
|
||||||
|
|
Loading…
Reference in New Issue