edge method for gpio objects