Skip to content

Commit

Permalink
Add support for SHTC3
Browse files Browse the repository at this point in the history
  • Loading branch information
winkj committed Jun 29, 2021
1 parent 97b6a0b commit 565f804
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Repository for Sensirion humidity and temperature sensor support on Arduino

## Supported sensors:
- SHTC1
- SHTC3
- SHTW1
- SHTW2
- SHT3x-DIS (I2C)
Expand Down
1 change: 1 addition & 0 deletions SHTSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ bool SHTSensor::init()
case SHTW1:
case SHTW2:
case SHTC1:
case SHTC3:
mSensor = new SHTC1Sensor();
break;
case SHT4X:
Expand Down
3 changes: 2 additions & 1 deletion SHTSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class SHTSensor
/** SHT3x-DIS with ADDR (sensor pin 2) connected to VDD */
SHT3X_ALT,
SHTC1,
SHTC3,
SHTW1,
SHTW2,
SHT4X
Expand All @@ -79,7 +80,7 @@ class SHTSensor
static const float TEMPERATURE_INVALID;
/**
* Auto-detectable sensor types.
* Note that the SHTW1 and SHTW2 share exactly the same driver as the SHTC1
* Note that the SHTC3, SHTW1 and SHTW2 share exactly the same driver as the SHTC1
* and are thus not listed individually.
*/
static const SHTSensorType AUTO_DETECT_SENSORS[];
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version=1.1.0
author=Johannes Winkelmann, Andreas Brauchli
maintainer=Johannes Winkelmann <[email protected]>
sentence=Support for Sensirion's humidity and temperature sensors.
paragraph=Supported sensors: SHTC1, SHTW1, SHTW2, SHT3x-DIS (I2C), SHT3x-ARP.
paragraph=Supported sensors: SHTC1, SHTC3, SHTW1, SHTW2, SHT3x-DIS (I2C), SHT3x-ARP, SHT4x
category=Sensors
url=https://developer.sensirion.com
architectures=*

0 comments on commit 565f804

Please sign in to comment.