Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dawinaj/bme280
BME280 driver for ESP32
https://github.com/dawinaj/bme280
bme280 cpp driver esp32 hal humidity-sensor pressure-sensor temperature-sensor
Last synced: about 1 month ago
JSON representation
BME280 driver for ESP32
- Host: GitHub
- URL: https://github.com/dawinaj/bme280
- Owner: dawinaj
- License: mit
- Created: 2024-08-28T16:11:50.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-09-15T00:01:28.000Z (2 months ago)
- Last Synced: 2024-10-13T00:02:02.597Z (about 1 month ago)
- Topics: bme280, cpp, driver, esp32, hal, humidity-sensor, pressure-sensor, temperature-sensor
- Language: C
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP32 BME280 driver/library
This is a single-file header-only C++ style library (see files in `main/include/`) for driving the **BME280** Bosch's humidity sensor from an **ESP32** microcontroller.
Currently supported are:
- BME280It uses the official Bosch API:
- https://github.com/boschsensortec/BME280_SensorAPI## Installation & usage
See example in `main/main.cpp`.- Move the files from `main/include/` to your include directory.
- Install `boschsensortec/BME280_SensorAPI` as component.
- #include the `BME280.h` in your code.
- Change in the `defs.h` file, preferred intermediate type used by Bosch API (double, int32, int64) (and as a result the type returned by this wrapper (double, float, float))
- Create an object of an implementation class (`I2C`, `SPI`).
- Done!