I2C Address depend SDO, defult address is:
0x76
When SDO is high address is:
0x77
-
get()
get envirment temperature and pressure -
getTemp()
get envirment temperature -
getPress()
get Pressure -
getAltitude()
Calculating absolute altitude -
poweron()
goto normal mode -
poweroff()
goto sleep mode
from machine import I2C
import time
import bmp280
b = bmp280.BMP280(I2C(1))
while True:
time.sleep_ms(500)
b.get()
From microbit/micropython Chinese community.
www.micropython.org.cn