Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gfrn/bmp280

BMP280 communication example for the BeagleBone Black
https://github.com/gfrn/bmp280

beaglebone-black c spi

Last synced: about 1 month ago
JSON representation

BMP280 communication example for the BeagleBone Black

Awesome Lists containing this project

README

        

# BMP280 SPI communication

See "example_bmp.c" for utilization details.

To switch between I²C and SPI, set the last parameter of `bmp_init` to either USE_SPI or USE_I2C

Datasheet: https://cdn-shop.adafruit.com/datasheets/BST-BMP280-DS001-11.pdf

Utilizes [Bosch Sensortec's](https://github.com/BoschSensortec/BMP280_driver) drivers for coefficient calculations

## Performance details

- Utilizes a constant amount of memory (capped at <1MB)
- CPU utilization scales non-linearly (approx. to log with base 1.5) for I2C
- CPU utilization scales non-linearly (approx. to log with base 1.6) for SPI, until higher (>200 Hz) polling rates are used.
- No memory leaks detected