Add BMP280/BME280 (tested only on BME); add SHT3x (bug: reads only once)

This commit is contained in:
Edward Emelianov
2025-10-13 00:46:21 +03:00
parent b0097d5ee6
commit 7a37dc0d2f
12 changed files with 568 additions and 26 deletions

View File

@@ -21,12 +21,14 @@
#include "aht.h"
#include "BMP180.h"
#include "BMP280.h"
#include "i2c.h"
#include "sensors_private.h"
#include "SHT3x.h"
#include "SI7005.h"
// NULL-terminated list of all supported sensors
static const sensor_t* supported_sensors[] = {&AHT10, &AHT15, &AHT21, &BMP180, &SI7005, NULL};
static const sensor_t* supported_sensors[] = {&AHT10, &AHT15, &AHT21, &BME280, &BMP180, &BMP280, &SHT3x, &SI7005, NULL};
// just two stupid wrappers
int sensors_open(const char *dev){