2021-09-27 14:51:23 -04:00
|
|
|
# Syntax Colouring Map For SHT2x temperature and humidity sensor
|
|
|
|
|
|
|
|
|
|
|
|
# Data types (KEYWORD1)
|
|
|
|
SHT2x KEYWORD1
|
2021-09-29 07:21:17 -04:00
|
|
|
SHT20 KEYWORD1
|
|
|
|
SHT21 KEYWORD1
|
|
|
|
SHT25 KEYWORD1
|
|
|
|
HTU20 KEYWORD1
|
|
|
|
HTU21 KEYWORD1
|
2023-09-11 04:13:31 -04:00
|
|
|
Si7013 KEYWORD1
|
|
|
|
Si7020 KEYWORD1
|
|
|
|
Si7021 KEYWORD1
|
|
|
|
GY21 KEYWORD1
|
2021-09-27 14:51:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
# Methods and Functions (KEYWORD2)
|
|
|
|
begin KEYWORD2
|
|
|
|
isConnected KEYWORD2
|
|
|
|
read KEYWORD2
|
|
|
|
|
|
|
|
getTemperature KEYWORD2
|
|
|
|
getHumidity KEYWORD2
|
|
|
|
getRawTemperature KEYWORD2
|
|
|
|
getRawHumidity KEYWORD2
|
|
|
|
|
|
|
|
reset KEYWORD2
|
|
|
|
getStatus KEYWORD2
|
|
|
|
lastRead KEYWORD2
|
|
|
|
|
|
|
|
setHeatTimeout KEYWORD2
|
|
|
|
getHeatTimeout KEYWORD2
|
|
|
|
heatOn KEYWORD2
|
|
|
|
heatOff KEYWORD2
|
|
|
|
isHeaterOn KEYWORD2
|
2021-11-17 12:59:50 -05:00
|
|
|
setHeaterLevel KEYWORD2
|
|
|
|
getHeaterLevel KEYWORD2
|
2021-09-27 14:51:23 -04:00
|
|
|
|
|
|
|
getError KEYWORD2
|
|
|
|
|
2021-11-17 12:59:50 -05:00
|
|
|
getEIDA KEYWORD2
|
|
|
|
getEIDB KEYWORD2
|
|
|
|
getFirmwareVersion KEYWORD2
|
|
|
|
|
2023-12-04 05:37:43 -05:00
|
|
|
requestTemperature KEYWORD2
|
2022-12-18 04:41:37 -05:00
|
|
|
requestHumidity KEYWORD2
|
|
|
|
reqTempReady KEYWORD2
|
|
|
|
reqHumReady KEYWORD2
|
2023-09-11 04:13:31 -04:00
|
|
|
requestReady KEYWORD2
|
2022-12-18 04:41:37 -05:00
|
|
|
readTemperature KEYWORD2
|
|
|
|
readHumidity KEYWORD2
|
2023-12-04 05:37:43 -05:00
|
|
|
readCachedTemperature KEYWORD2
|
2022-12-18 04:41:37 -05:00
|
|
|
lastRequest KEYWORD2
|
2023-09-11 04:13:31 -04:00
|
|
|
getRequestType KEYWORD2
|
2022-12-18 04:41:37 -05:00
|
|
|
|
2021-09-27 14:51:23 -04:00
|
|
|
|
|
|
|
# Instances (KEYWORD2)
|
|
|
|
|
|
|
|
|
|
|
|
# Constants (LITERAL1)
|
|
|
|
SHT2x_LIB_VERSION LITERAL1
|
|
|
|
SHT2x_OK LITERAL1
|
2021-11-17 12:59:50 -05:00
|
|
|
|
2021-09-27 14:51:23 -04:00
|
|
|
SHT2x_ERR_WRITECMD LITERAL1
|
|
|
|
SHT2x_ERR_READBYTES LITERAL1
|
|
|
|
SHT2x_ERR_HEATER_OFF LITERAL1
|
|
|
|
SHT2x_ERR_NOT_CONNECT LITERAL1
|
|
|
|
SHT2x_ERR_CRC_TEMP LITERAL1
|
|
|
|
SHT2x_ERR_CRC_HUM LITERAL1
|
|
|
|
SHT2x_ERR_CRC_STATUS LITERAL1
|
|
|
|
SHT2x_ERR_HEATER_COOLDOWN LITERAL1
|
|
|
|
SHT2x_ERR_HEATER_ON LITERAL1
|
|
|
|
|
2021-11-17 12:59:50 -05:00
|
|
|
SHT2x_STATUS_OPEN_CIRCUIT LITERAL1
|
|
|
|
SHT2x_STATUS_TEMPERATURE LITERAL1
|
|
|
|
SHT2x_STATUS_HUMIDITY LITERAL1
|
|
|
|
SHT2x_STATUS_CLOSED_CIRCUIT LITERAL1
|
|
|
|
|
2023-09-11 04:13:31 -04:00
|
|
|
SHT2x_REQ_NONE LITERAL1
|
|
|
|
SHT2x_REQ_TEMPERATURE LITERAL1
|
|
|
|
SHT2x_REQ_HUMIDITY LITERAL1
|
|
|
|
|