shtc3: Sensirion SHTC3 Relative Humidity / Temperature i2c sensor

This commit is contained in:
Olivier Fauchon
2021-12-27 00:51:46 +01:00
committed by Ron Evans
parent 121e8147f7
commit 025a66655f
5 changed files with 124 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
package shtc3
// Constants used for I2C.
const (
SHTC3_ADDRESS = 0x70
SHTC3_CMD_WAKEUP = "\x35\x17" // Wake up
SHTC3_CMD_MEASURE_HP = "\x7C\xA2" // Read sensor in high power mode with clock stretching
SHTC3_CMD_SLEEP = "\xB0\x98" // Sleep
SHTC3_CMD_SOFT_RESET = "\x80\x5D" // Soft Reset
)