direction method for gpio objects