2 years, 4 months ago.

Suggestion : Add the possibilit of returning PinName of classes/objects in mbed lib.

In a question I could confirm that this functionality is missing in all mbed classes. When you need to know which pinname is assigned in the class/object to what, there is no possibility to do so.. for ex: Which pin myPwm has got during creation ?

You need for each class add something like bellow

Discussion made before: https://os.mbed.com/questions/80711/Retrieve-pinname-from-Mbed-classes-like-/#answer14375

    /** Get the Pin Name
          PinName from PwmOut object
    PinName getPinName() {
        return _pwm.pin;

Kindly try to implement this functionality in mbed..

Be the first to answer this question.