https://github.com/electroniccats/pxt-bme280
MakeCode package for the bme280 sensor - beta
https://github.com/electroniccats/pxt-bme280
bme280 humidity makecode maker microsoft pressure samd21 temperature temperature-sensor
Last synced: 8 months ago
JSON representation
MakeCode package for the bme280 sensor - beta
- Host: GitHub
- URL: https://github.com/electroniccats/pxt-bme280
- Owner: ElectronicCats
- License: mit
- Created: 2018-10-09T22:22:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T17:27:12.000Z (over 5 years ago)
- Last Synced: 2025-04-09T22:11:54.275Z (12 months ago)
- Topics: bme280, humidity, makecode, maker, microsoft, pressure, samd21, temperature, temperature-sensor
- Language: TypeScript
- Size: 230 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/ElectronicCats/pxt-bme280)
# BME280
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
## I2C Address
- 0x76/0x77
## API


- `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
## License
MIT
Copyright (c) 2018, microbit/micropython Chinese community
## Maintainer
[Electronic Cats](https://github.com/ElectronicCats) invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!
## Supported targets
* for PXT/maker
* for PXT/micro:bit
```package
bme280
```