Set the mode of pin

In keil studio, user’s can modify the mode of pins such as open drain. How can I do that in mbed studio?

Hello,

Mbed Studio and KeilStudioClaud are IDEs. Requested functionality is provided by MbedOS and this has nothing together with choosed IDE.

So you can do this same way.

BR, Jan

I used DigitalOut pin(D1); pin.mode(OpenDrain);This did not work when I asked the question but it works now. Probably because the bug of mbed studio. Anyway, thanks a lot.