A package to use BME280 Digital Pressure and Humidity Sensor in MakeCode
Author Original: shaoziyang
Date: 2018.Mar
Modified: Andrés Sabas
Date: Octuber 2018
- 0x76/0x77
-
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:- BME280_I2C_ADDRESS.ADDR_0x76
- BME280_I2C_ADDRESS.ADDR_0x77
MIT
Copyright (c) 2018, microbit/micropython Chinese community
Electronic Cats invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!
- for PXT/maker
- for PXT/micro:bit
bme280