36 #include "lib/sensors.h" 37 #include "dev/sht11/sht11.h" 38 #include "dev/sht11/sht11-sensor.h" 40 const struct sensors_sensor sht11_sensor;
45 static uint8_t state = OFF;
53 case SHT11_SENSOR_TEMP:
57 case SHT11_SENSOR_HUMIDITY:
58 return sht11_humidity();
60 case SHT11_SENSOR_BATTERY_INDICATOR:
61 return sht11_sreg() & 0x40? 1: 0;
79 configure(
int type,
int c)
84 if(!status(SENSORS_ACTIVE)) {
91 while(RTIMER_CLOCK_LT(
RTIMER_NOW(), t0 + RTIMER_SECOND / 100));
101 SENSORS_SENSOR(sht11_sensor,
"sht11",
102 value, configure, status);
#define RTIMER_NOW()
Get the current clock time.