Pointers to mbed objects

19 Oct 2011

I want to malloc some memory for an interface such as DigitalOut. Then, I want to locally instantiate a DigitalOut with a pin (because DigitalOut has no default constructor). Then I want to access that same DigitalOut pin later on. Any ideas on how to do this?