Approved content
The content below is provided by a partner.
makecode BME280 Digital Pressure and Humidity Sensor package for micro:bit
Author: shaoziyang
Date: 2018.Mar
open your microbit makecode project, in Add Package, paste
https://github.com/microbit-makecode-packages/BME280
to search box then search.
function pressure()
get pressure in pa
function temperature()
return temperature in Celsius.
function humidity() return humidity in percent
function PowerOn() turn on BME280.
function PowerOff()
goto sleep mode
function Address(addr: BME280_I2C_ADDRESS)
set BME280’s I2C address. addr may be:
MIT
Copyright (c) 2018, microbit/micropython Chinese community
From microbit/micropython Chinese community
BME280=github:makecode-extensions/bme280#v1.1.0