Added inverted option for gpio