Skip to content

Commit 565f804

Browse files
committed
Add support for SHTC3
1 parent 97b6a0b commit 565f804

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Repository for Sensirion humidity and temperature sensor support on Arduino
33

44
## Supported sensors:
55
- SHTC1
6+
- SHTC3
67
- SHTW1
78
- SHTW2
89
- SHT3x-DIS (I2C)

SHTSensor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ bool SHTSensor::init()
300300
case SHTW1:
301301
case SHTW2:
302302
case SHTC1:
303+
case SHTC3:
303304
mSensor = new SHTC1Sensor();
304305
break;
305306
case SHT4X:

SHTSensor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class SHTSensor
5555
/** SHT3x-DIS with ADDR (sensor pin 2) connected to VDD */
5656
SHT3X_ALT,
5757
SHTC1,
58+
SHTC3,
5859
SHTW1,
5960
SHTW2,
6061
SHT4X
@@ -79,7 +80,7 @@ class SHTSensor
7980
static const float TEMPERATURE_INVALID;
8081
/**
8182
* Auto-detectable sensor types.
82-
* Note that the SHTW1 and SHTW2 share exactly the same driver as the SHTC1
83+
* Note that the SHTC3, SHTW1 and SHTW2 share exactly the same driver as the SHTC1
8384
* and are thus not listed individually.
8485
*/
8586
static const SHTSensorType AUTO_DETECT_SENSORS[];

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version=1.1.0
33
author=Johannes Winkelmann, Andreas Brauchli
44
maintainer=Johannes Winkelmann <[email protected]>
55
sentence=Support for Sensirion's humidity and temperature sensors.
6-
paragraph=Supported sensors: SHTC1, SHTW1, SHTW2, SHT3x-DIS (I2C), SHT3x-ARP.
6+
paragraph=Supported sensors: SHTC1, SHTC3, SHTW1, SHTW2, SHT3x-DIS (I2C), SHT3x-ARP, SHT4x
77
category=Sensors
88
url=https://developer.sensirion.com
99
architectures=*

0 commit comments

Comments
 (0)