32 #include "dev/button-sensor.h"
36 PROCESS(test_button_process,
"Test button process");
37 AUTOSTART_PROCESSES(&test_button_process);
41 static int counter = 0;
45 printf(
"Starting Button test process (counter=%i)\n", counter);
51 if(ev == sensors_event && data == &button_sensor) {
53 printf(
"Button pressed (counter=%i)\n", counter);