39 #ifndef BUTTON_SENSOR_H_
40 #define BUTTON_SENSOR_H_
42 #include "lib/sensors.h"
44 #define BUTTON_SENSOR "Button"
46 #define BUTTON_SENSOR_VALUE_STATE 0
47 #define BUTTON_SENSOR_VALUE_DURATION 1
49 #define BUTTON_SENSOR_VALUE_RELEASED 0
50 #define BUTTON_SENSOR_VALUE_PRESSED 1
54 extern const struct sensors_sensor button_right_sensor;
55 extern const struct sensors_sensor button_up_sensor;
56 extern const struct sensors_sensor button_down_sensor;
const struct sensors_sensor button_left_sensor
Exports a global symbol to be used by the sensor API.
const struct sensors_sensor button_select_sensor
Exports a global symbol to be used by the sensor API.