Sample code on how to pass an optional function pointer to a library and set a single pin to either InterruptIn or DigitalOut.
Frank Vannieuwkerke
/
DemoClass