Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gfrn/bmp280
- Owner: gfrn
- License: bsd-3-clause
- Created: 2021-02-15T19:25:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T18:37:28.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T13:27:03.152Z (2 months ago)
- Topics: beaglebone-black, c, spi
- Language: C
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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