DigitalInOut feature request

24 Apr 2014

I am working on a library for a RGB light sensor (i2c). One of the sensor pins can be switched between input and interrupt output.
As I want to have the ability to switch this pin at runtime, my initial idea was to combine DigitalOut and InterruptIn.

Even though this is workable, i think there is a far more elegant solution using DigitalInOut.

I found this older topic about combined use of DigitalInOut/InterruptIn but perhaps adding InterruptIn as an API member to DigitalInOut would be a better solution (easier to use on different platforms - no need to mess with GPIOs in our code).
Any other ideas to solve this?