class of Buttons -isPressed -wasPressed -notPressed -LongPress (Timer)

Revision:
3:68f58a34e627
Parent:
2:cf58f3863c07
--- 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