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

11 Jul 2017

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.....?