36#include "lib/sensors.h"
37#include "dev/sensor/sht11/sht11.h"
38#include "dev/sensor/sht11/sht11-sensor.h"
40const struct sensors_sensor sht11_sensor;
45static 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;
79configure(
int type,
int c)
84 if(!status(SENSORS_ACTIVE)) {
101SENSORS_SENSOR(sht11_sensor,
"sht11",
102 value, configure, status);
#define RTIMER_SECOND
Number of rtimer ticks for 1 second.
#define RTIMER_NOW()
Get the current clock time.