00001 00002 00003 00004 #ifndef _BUTTONRY_H 00005 #define _BUTTONRY_H 00006 00007 void debounce(uint8_t port, uint8_t* state, void (*handler)(uint8_t)); 00008 void buttons_init(); 00009 void button1_handler(uint8_t on); 00010 void button2_handler(uint8_t on); 00011 uint8_t is_setting(); 00012 void buttonry_tick(uint8_t b1, uint8_t b2); 00013 00014 #endif