3 #include "lib/sensors.h"
4 #include "dev/button-sensor.h"
6 static int status(
int type);
7 struct sensors_sensor *sensors[1];
8 unsigned char sensors_flags[1];
18 configure(
int type,
int c)
23 if(!status(SENSORS_ACTIVE)) {
44 value, configure, status);
const struct sensors_sensor button_sensor
Copyright (c) 2014, Analog Devices, Inc.
static int value(int type, nrf_drv_gpiote_pin_t pin)
Return current state of a button.