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: 4 months 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T20:58:19.000Z (about 1 year ago)
- Last Synced: 2025-07-11T23:37:08.317Z (11 months ago)
- Topics: bme280, cpp, driver, esp32, hal, humidity-sensor, pressure-sensor, temperature-sensor
- Language: C
- Homepage:
- Size: 94.7 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:
- BME280
It 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!