#include "../common/I2C/USI_TWI_Master.h"\r
#include "../common/I2C/MAX44009.h"\r
#include "../common/I2C/SHT2x.h"\r
#include "../common/I2C/USI_TWI_Master.h"\r
#include "../common/I2C/MAX44009.h"\r
#include "../common/I2C/SHT2x.h"\r
// --- measure temperature with "Polling Mode" (no hold master) ---\r
SHT2x_MeasurePoll(TEMP, &sT);\r
//-- calculate humidity and temperature --\r
// --- measure temperature with "Polling Mode" (no hold master) ---\r
SHT2x_MeasurePoll(TEMP, &sT);\r
//-- calculate humidity and temperature --\r
- temperatureC = SHT2x_CalcTemperatureC(sT)*10.0;\r
- humidityRH = SHT2x_CalcRH(sRH)*10.0;\r
+ temperatureC = SHT2x_CalcTemperatureC(sT);\r
+ humidityRH = calibr_hum(temperatureC,-0.2,SHT2x_CalcRH(sRH))*10.0;\r
+ temperatureC-=0.2;\r
+ temperatureC*=10.0;\r