Added method to pulse GPIO for a given amount of time