reset output pins after a task