33 #include "contiki-esb.h"
35 PROCESS(beeper_process,
"Beeper");
37 AUTOSTART_PROCESSES(&beeper_process);
41 static struct pt beeper_pt;
51 leds_invert(LEDS_RED);
56 leds_invert(LEDS_RED);
69 button_sensor.configure(SENSORS_ACTIVE, 1);
73 beeper_thread(&beeper_pt);
77 if(ev == PROCESS_EVENT_EXIT) {
79 }
else if(ev == sensors_event &&
80 data == &button_sensor) {
81 leds_invert(LEDS_YELLOW);