37 #include "lib/sensors.h"
38 #include "dev/sht11.h"
39 #include "dev/sht11-sensor.h"
41 const struct sensors_sensor sht11_sensor;
46 static uint8_t state = OFF;
54 case SHT11_SENSOR_TEMP:
58 case SHT11_SENSOR_HUMIDITY:
59 return sht11_humidity();
61 case SHT11_SENSOR_BATTERY_INDICATOR:
62 return sht11_sreg() & 0x40? 1: 0;
80 configure(
int type,
int c)
85 if(!status(SENSORS_ACTIVE)) {
92 while(RTIMER_CLOCK_LT(
RTIMER_NOW(), t0 + RTIMER_SECOND / 100));
102 SENSORS_SENSOR(sht11_sensor,
"sht11",
103 value, configure, status);