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

Revision:
3:68f58a34e627
Parent:
2:cf58f3863c07
--- a/button.h	Thu Dec 13 12:48:21 2018 +0000
+++ b/button.h	Wed Jan 09 16:02:43 2019 +0000
@@ -13,7 +13,7 @@
     public:                                                                     // public
         button(PinName pBtn, PinMode  pBtnMode, float Time = 0);                // constructor
         void init();                                                            // initialisation
-        void polling(int *iNumBtn = NULL);                                      // polls and debounce the button 
+        void polling(uint8_t *iNumBtn = NULL);                                      // polls and debounce the button 
         bool isPressed();                                                       // bool value if button is pressed or not
         bool wasPressed();                                                      //
         bool isLongPress();