Lucas Borges
/
MenuLCD_Copy
this locks like shit
Fork of MenuLCD_copy by
Diff: menbed/include/menbedButtonEvent.h
- Revision:
- 0:92357d1220f3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/menbed/include/menbedButtonEvent.h Fri May 19 13:07:52 2017 +0000 @@ -0,0 +1,25 @@ +#ifndef _MENBEDBUTTONEVENT_H_ +#define _MENBEDBUTTONEVENT_H_ + +#include "mbed.h" + +class MenbedButtonEvent { +public: + enum ButtonName { + ButtonSelect, + ButtonDown, + ButtonUp, + ButtonCancel }; + + enum ButtonAction { + BUTTON_ACTION_PUSHED, + BUTTON_ACTION_RELEASED_SHORT, + BUTTON_ACTION_RELEASED_LONG, + BUTTON_ACTION_HELD_LONG }; + + ButtonName name; + ButtonAction action; + uint8_t numButtons; +}; + +#endif /* _MENBEDBUTTONEVENT_H_ */ \ No newline at end of file