as long as switch is pressed LED will light on

Dependencies:   mbed

no such method: tip