6 years, 9 months ago.

how to set a pin as either anlog in or digital out.........?

hai

i am using mbed to program my nrf51822.i want to set the analog pin p6 as analog in in one situation and as a digital out in another situation. but i am unable to do so. so can i set the pin like this.....?

1 Answer

6 years, 9 months ago.

Hi Nethram,

Thanks for getting in touch :)

Do have a look here: https://developer.mbed.org/questions/2335/AnalogIn-and-DigitalOut-on-same-pin/

Regards,

Andrea, team mbed