f0c43ff5d5
The BME280 is close to compatible with the existing BMP280 and extends it with support for measuring humidity, so support has been bundled into the bmp280 driver. The example now auto-detects the device and displays the humidity for the BME280. The I2C bus initialization has been moved out of the bmp280 driver to support multiple devices. The check-id and reset logic has been bundled into the driver initialization. It needs to be re-initialized after reset anyway and the chip-id is need to initialize it, just re-initialize to reset. Support has been added for multiple devices. The calibration data storage needs to be managed by the caller rather than static data. The caller can choose the I2C address to allow two BMx280 devices to be used on the same I2C bus. An interface has been added to return the measurement values in an integer fixed float format. The float format interface is still there. All the values are read in one I2C transaction to ensure they are a consistent set. Renamed bmp280_calib_t to bmp280_t, and removed read_register8. |
||
---|---|---|
.. | ||
access_point | ||
blink | ||
blink_timers | ||
bmp180_i2c | ||
bmp280 | ||
button | ||
cpp_01_tasks | ||
dht_sensor | ||
ds18b20_broadcaster | ||
ds18b20_onewire | ||
ds3231_test | ||
experiments | ||
http_get | ||
http_get_mbedtls | ||
i2s_audio | ||
json_jsmn_simple | ||
mqtt_client | ||
ota_basic | ||
posix_fs | ||
pwm_test | ||
serial_echo | ||
simple | ||
simple_cplusplus | ||
sntp | ||
spiffs | ||
terminal | ||
tests/hmac_test_vectors | ||
tls_server | ||
ws2812_i2s | ||
ws2812_rainbow | ||
Makefile |