changing DigitalOut's PinName

18 Oct 2010

I would like to know if there is a way to a change the PinName after you created a DigitalOut object.

Example:

DigitalOut Led(p21);

Led.NewPin(p22);