execute a function when a button is pressed

Dependencies:   mbed

unknown revision 'shortlog'