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

Dependencies:   mbed

Auto generated API documentation and code listings for DemoClass

Code

DemoClass.cpp [code]
DemoClass.h [code]
main.cpp [code]