Hello,
I have the experience to work on Arduino as well as MBED.
Please confirm me in which MBED board do you want to convert the code from Arduino.
I will provide you with the Tested working codes that fulfil your requirement
I have more than 6 years experience in this field.
I want to discuss with you some more points, please send me a message for discussion.
Thanks,
Chanchal