Commit Graph

5 Commits

Author SHA1 Message Date
Thomas Kolb 5090b7de4a Try to make BMP280 communication more resilient
If communication times out or a NAK is received, this is now recognized
and sensor values are flagged as invalid. The communication then
restarts on the next regular cycle. This is still to be tested.
2022-11-09 20:47:13 +01:00
Thomas Kolb c807acec11 bmp280: add function to check for valid measurements 2022-10-15 21:41:50 +02:00
Thomas Kolb 07dd91ecc2 bmp280: read out via DMA in the background
This removes any busy waiting on the I²C from the main loop.
Initialization is still done in a blocking way.
2022-10-15 20:49:31 +02:00
Thomas Kolb 3dcf412a02 BMP280: Crude workaround for detecting chip presence 2022-10-08 21:49:28 +02:00
Thomas Kolb 2f0f6a01f2 Initial BMP280 integration
This version uses only blocking i2c calls, and long transfers will
probably cause frame loss. Also, if no BMP280 is present, the firmware
will not start up and hang in an endless loop instead.
2022-10-08 20:50:08 +02:00