Skip to content

Commit

Permalink
Added BME280 support
Browse files Browse the repository at this point in the history
  • Loading branch information
quen0n committed Dec 19, 2022
1 parent 90b6d5f commit 18bbf9f
Show file tree
Hide file tree
Showing 6 changed files with 384 additions and 275 deletions.
2 changes: 1 addition & 1 deletion Sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const Interface ONE_WIRE = {
//static const Interface* interfaces[] = {&SINGLE_WIRE, &I2C, &ONE_WIRE};
//Перечень датчиков
static const SensorType* sensorTypes[] =
{&DHT11, &DHT12_SW, &DHT21, &DHT22, &AM2320_SW, &AM2320_I2C, &LM75, &BMP280, &Dallas};
{&DHT11, &DHT12_SW, &DHT21, &DHT22, &AM2320_SW, &AM2320_I2C, &LM75, &BMP280, &BME280, &Dallas};

const SensorType* unitemp_sensors_getTypeFromInt(uint8_t index) {
if(index > SENSOR_TYPES_COUNT) return NULL;
Expand Down
3 changes: 2 additions & 1 deletion Sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ const GPIO*
//DS18x2x
#include "./interfaces/OneWireSensor.h"
#include "./sensors/LM75.h"
#include "./sensors/BMP280.h"
//BMP280, BME280
#include "./sensors/BMx280.h"
#include "./sensors/AM2320.h"
#endif
259 changes: 0 additions & 259 deletions sensors/BMP280.c

This file was deleted.

Loading

0 comments on commit 18bbf9f

Please sign in to comment.