To me, the requirements make me think of a design which has a class encapsulating the LED pin assignment and desired fade behaviour that can remember what state the LED was left in and what the desired end state is and knows how to get from one to the other.