Mbed example of while loop usage

Dependencies:   mbed

revision not found: shortlog