Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef dCouple_Digital_PushButton_h
- #define dCouple_Digital_PushButton_h
- class PushButton: public dCouple::State {
- void (*button_low_callback)(PushButton*);
- void (*button_high_callback)(PushButton*);
- void (*button_changed_callback)(PushButton*);
- bool debouncing;
- public:
- PushButton();
- void set_button_low_callback(void(*_callback)(PushButton*));
- void set_button_high_callback(void(*_callback)(PushButton*));
- void set_button_changed_callback(void(*_callback)(PushButton*));
- void state_has_changed();
- };
- #endif
Add Comment
Please, Sign In to add comment