33 #include "dev/button-sensor.h"
37 PROCESS(test_button_process,
"Test button process");
38 AUTOSTART_PROCESSES(&test_button_process);
42 static int counter = 0;
46 printf(
"Starting Button test process (counter=%i)\n", counter);
47 button_sensor.configure(SENSORS_ACTIVE, 1);
52 if(ev == sensors_event && data == &button_sensor) {
54 printf(
"Button pressed (counter=%i)\n", counter);