Add invert to DigitalIn/DigitalInOut/DigitalOut