This commit is contained in:
brentru 2022-09-21 13:17:46 -04:00
parent bf591442db
commit 454d747d6d
3 changed files with 7 additions and 7 deletions

View file

@ -29,8 +29,8 @@
#include "drivers/WipperSnapper_I2C_Driver_PM25.h"
#include "drivers/WipperSnapper_I2C_Driver_SCD30.h"
#include "drivers/WipperSnapper_I2C_Driver_SCD40.h"
#include "drivers/WipperSnapper_I2C_Driver_SHT4X.h"
#include "drivers/WipperSnapper_I2C_Driver_SHT3X.h"
#include "drivers/WipperSnapper_I2C_Driver_SHT4X.h"
#include "drivers/WipperSnapper_I2C_Driver_SI7021.h"
#include "drivers/WipperSnapper_I2C_Driver_STEMMA_Soil_Sensor.h"
#include "drivers/WipperSnapper_I2C_Driver_TSL2591.h"

View file

@ -8,7 +8,7 @@
* products from Adafruit!
*
* Copyright (c) Marni Brewster 2022 for Adafruit Industries.
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* rewritten to use driver by Sensirion, help from Brent Rubell.
*
* MIT license, all text here must be included in any redistribution.
@ -52,7 +52,7 @@ public:
*/
/*******************************************************************************/
bool begin() {
if(_sensorAddress==0x44) // if address 0x44 (dec:68), alternative = 0x45
if (_sensorAddress == 0x44) // if address 0x44 (dec:68), alternative = 0x45
_sht3x = new SHTSensor(SHTSensor::SHT3X);
else
_sht3x = new SHTSensor(SHTSensor::SHT3X_ALT);
@ -94,7 +94,7 @@ public:
// populate temp and humidity objects with fresh data
if (!_sht3x->readSample())
return false;
humidEvent->relative_humidity = _sht3x->getHumidity();
humidEvent->relative_humidity = _sht3x->getHumidity();
return true;
}

View file

@ -8,7 +8,7 @@
* products from Adafruit!
*
* Copyright (c) Marni Brewster 2022 for Adafruit Industries.
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* Copyright (c) Tyeth Gundry 2022. Original code by Marni,
* rewritten to use driver by Sensirion, help from Brent Rubell.
*
* MIT license, all text here must be included in any redistribution.
@ -58,7 +58,7 @@ public:
// Use HIGH PRECISION - only supported by 3X/4X
_sht4x->setAccuracy(SHTSensor::SHT_ACCURACY_HIGH);
return true;
}
@ -92,7 +92,7 @@ public:
// populate temp and humidity objects with fresh data
if (!_sht4x->readSample())
return false;
humidEvent->relative_humidity = _sht4x->getHumidity();
humidEvent->relative_humidity = _sht4x->getHumidity();
return true;
}