44 #ifndef BUTTON_SENSOR_H_
45 #define BUTTON_SENSOR_H_
47 #include "lib/sensors.h"
49 #define BUTTON_SENSOR "Button"
51 #define BUTTON_SENSOR_VALUE_STATE 0
52 #define BUTTON_SENSOR_VALUE_DURATION 1
54 #define BUTTON_SENSOR_VALUE_RELEASED 0
55 #define BUTTON_SENSOR_VALUE_PRESSED 1
58 extern const struct sensors_sensor button_right_sensor;
const struct sensors_sensor button_left_sensor
Exports a global symbol to be used by the sensor API.