add button function

master-01022017
Harald Pichler 2016-12-06 21:36:22 +01:00
parent 353cfe723c
commit 16e6a20b31
2 changed files with 2 additions and 6 deletions

View File

@ -127,12 +127,7 @@ PROCESS_THREAD(arduino_sketch, ev, data)
if(ev == sensors_event && data == &button_sensor) {
mcu_sleep_off();
PRINTF("*******BUTTON*******\n");
/* Call the event_handler for this application-specific event. */
res_event.trigger();
/* Also call the separate response example handler. */
res_separate.resume();
button ();
mcu_sleep_on();
}
#endif /* PLATFORM_HAS_BUTTON */

View File

@ -61,6 +61,7 @@ void mcu_sleep_set(uint8_t value);
extern void loop (void);
extern void setup (void);
extern void arduino_init (void);
extern void button (void);
extern struct process arduino_sketch;