Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 8 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 @returns PinName from PwmOut object */ PinName getPinName() { return _pwm.pin;
Kindly try to implement this functionality in mbed..