class of Buttons -isPressed -wasPressed -notPressed -LongPress (Timer)
Diff: button.h
- Revision:
- 2:cf58f3863c07
- Parent:
- 1:e9d0d9b29acc
- Child:
- 3:68f58a34e627
--- a/button.h Tue Dec 04 10:40:33 2018 +0000 +++ b/button.h Thu Dec 13 12:48:21 2018 +0000 @@ -13,7 +13,7 @@ public: // public button(PinName pBtn, PinMode pBtnMode, float Time = 0); // constructor void init(); // initialisation - void polling(); // polls and debounce the button + void polling(int *iNumBtn = NULL); // polls and debounce the button bool isPressed(); // bool value if button is pressed or not bool wasPressed(); // bool isLongPress();