class of Buttons -isPressed -wasPressed -notPressed -LongPress (Timer)
Diff: button.cpp
- Revision:
- 3:68f58a34e627
- Parent:
- 2:cf58f3863c07
diff -r cf58f3863c07 -r 68f58a34e627 button.cpp --- a/button.cpp Thu Dec 13 12:48:21 2018 +0000 +++ b/button.cpp Wed Jan 09 16:02:43 2019 +0000 @@ -49,7 +49,7 @@ // - NUNCYCLES: max. value of cycle counter // - *iNumBtn: pointer of variable, which counts pressed buttons /******************************************************************************/ -void button::polling(int *iNumBtn) +void button::polling(uint8_t *iNumBtn) { bOldState = bNewState; // bNewState gets the becomes the bOldstate bNewState = (bool)pin->read(); // update bNewState