Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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!