35 #include "lib/sensors.h"
36 #include "dev/button-sensor.h"
40 #define JOYSTICK_PUSH (!(P5 & BIT(5)))
41 #define JOYSTICK_RIGHT (!(P5 & BIT(4)))
42 #define JOYSTICK_DOWN (!(P5 & BIT(3)))
43 #define JOYSTICK_LEFT (!(P5 & BIT(2)))
44 #define JOYSTICK_UP (!(P5 & BIT(1)))
46 const struct sensors_sensor button_sensor;
54 configure(
int type,
int c)
73 SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
74 value, configure, status);