mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
format
This commit is contained in:
@@ -75,27 +75,10 @@ const Interface SPI = {
|
|||||||
//Перечень интерфейсов подключения
|
//Перечень интерфейсов подключения
|
||||||
//static const Interface* interfaces[] = {&SINGLE_WIRE, &I2C, &ONE_WIRE, &SPI};
|
//static const Interface* interfaces[] = {&SINGLE_WIRE, &I2C, &ONE_WIRE, &SPI};
|
||||||
//Перечень датчиков
|
//Перечень датчиков
|
||||||
static const SensorType* sensorTypes[] = {
|
static const SensorType* sensorTypes[] = {&DHT11, &DHT12_SW, &DHT20, &DHT21, &DHT22,
|
||||||
&DHT11,
|
&Dallas, &AM2320_SW, &AM2320_I2C, &HTU21x, &AHT10,
|
||||||
&DHT12_SW,
|
&SHT30, &GXHT30, &LM75, &HDC1080, &BMP180,
|
||||||
&DHT20,
|
&BMP280, &BME280, &BME680, &MAX31855, &MAX6675};
|
||||||
&DHT21,
|
|
||||||
&DHT22,
|
|
||||||
&Dallas,
|
|
||||||
&AM2320_SW,
|
|
||||||
&AM2320_I2C,
|
|
||||||
&HTU21x,
|
|
||||||
&AHT10,
|
|
||||||
&SHT30,
|
|
||||||
&GXHT30,
|
|
||||||
&LM75,
|
|
||||||
&HDC1080,
|
|
||||||
&BMP180,
|
|
||||||
&BMP280,
|
|
||||||
&BME280,
|
|
||||||
&BME680,
|
|
||||||
&MAX31855,
|
|
||||||
&MAX6675};
|
|
||||||
|
|
||||||
const SensorType* unitemp_sensors_getTypeFromInt(uint8_t index) {
|
const SensorType* unitemp_sensors_getTypeFromInt(uint8_t index) {
|
||||||
if(index > SENSOR_TYPES_COUNT) return NULL;
|
if(index > SENSOR_TYPES_COUNT) return NULL;
|
||||||
|
|||||||
@@ -101,8 +101,7 @@ bool unitemp_BMP180_init(Sensor* sensor) {
|
|||||||
bmp180_instance->bmp180_cal.MC = (buff[18] << 8) | buff[19];
|
bmp180_instance->bmp180_cal.MC = (buff[18] << 8) | buff[19];
|
||||||
bmp180_instance->bmp180_cal.MD = (buff[20] << 8) | buff[21];
|
bmp180_instance->bmp180_cal.MD = (buff[20] << 8) | buff[21];
|
||||||
|
|
||||||
|
UNITEMP_DEBUG(
|
||||||
UNITEMP_DEBUG(
|
|
||||||
"Sensor BMP180 (0x%02X) calibration values: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",
|
"Sensor BMP180 (0x%02X) calibration values: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",
|
||||||
i2c_sensor->currentI2CAdr,
|
i2c_sensor->currentI2CAdr,
|
||||||
bmp180_instance->bmp180_cal.AC1,
|
bmp180_instance->bmp180_cal.AC1,
|
||||||
|
|||||||
Reference in New Issue
Block a user