I’m suprised to find out that the PwmOut constructor does not have an initial value argument.
I have this use case where I want to keep an LED turned on during the transition from the bootloader to the application. Currently, since the PwmOut is initialized with 0 duty cycle, an annoying flicker is visible before the duty cycle is set to its correct value in the application.
I think this could be added to the PwmOut API in a non-breaking way with C++ default arguments. The question is how to implement this for all supported targets. Is it possible to indicate that an API is only available for some targets?