8 years, 9 months ago.

Reset pins

Hi,

I'm using nrg 51822.

and I wonder how I reset pins.

for example,

Pwmout servo(pin);

then after using servo, I want to reset the servo pin(disconnect, I am not sure what is correct expression).

I tried,

Pwmout *servo = new Pwmout(pin);

delete servo;

but, I didn't work. anyone here me?

1 Answer

8 years, 9 months ago.

Try setting the pin as an input or directly changing the IO control registers.