Debounce and latch a button input

Dependencies:   mbed

no such method: tip