this locks like shit

Dependencies:   MenuLCD mbed

Fork of MenuLCD_copy by Vinícius Alves

Committer:
LucasMatBorges
Date:
Fri May 19 18:48:04 2017 +0000
Revision:
1:f105b690aeb7
Parent:
0:92357d1220f3
R?row mein

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ViniR 0:92357d1220f3 1 #ifndef _MENBEDBUTTONEVENT_H_
ViniR 0:92357d1220f3 2 #define _MENBEDBUTTONEVENT_H_
ViniR 0:92357d1220f3 3
ViniR 0:92357d1220f3 4 #include "mbed.h"
ViniR 0:92357d1220f3 5
ViniR 0:92357d1220f3 6 class MenbedButtonEvent {
ViniR 0:92357d1220f3 7 public:
ViniR 0:92357d1220f3 8 enum ButtonName {
ViniR 0:92357d1220f3 9 ButtonSelect,
ViniR 0:92357d1220f3 10 ButtonDown,
ViniR 0:92357d1220f3 11 ButtonUp,
ViniR 0:92357d1220f3 12 ButtonCancel };
ViniR 0:92357d1220f3 13
ViniR 0:92357d1220f3 14 enum ButtonAction {
ViniR 0:92357d1220f3 15 BUTTON_ACTION_PUSHED,
ViniR 0:92357d1220f3 16 BUTTON_ACTION_RELEASED_SHORT,
ViniR 0:92357d1220f3 17 BUTTON_ACTION_RELEASED_LONG,
ViniR 0:92357d1220f3 18 BUTTON_ACTION_HELD_LONG };
ViniR 0:92357d1220f3 19
ViniR 0:92357d1220f3 20 ButtonName name;
ViniR 0:92357d1220f3 21 ButtonAction action;
ViniR 0:92357d1220f3 22 uint8_t numButtons;
ViniR 0:92357d1220f3 23 };
ViniR 0:92357d1220f3 24
ViniR 0:92357d1220f3 25 #endif /* _MENBEDBUTTONEVENT_H_ */