Open this page at bmp280
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/emakefun/pxt-bmp280 and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/emakefun/pxt-bmp280 and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/microbit
Example Click to view
BMP280.em_initBmp280()
BMP280.em_bmp280_Address(BMP280_I2C_ADDRESS.ADDR_0x76)
basic.forever(function () {
basic.showString("" + (BMP280.em_pressure()))
basic.showString("" + (BMP280.em_temperature()))
})