Stopwatch with Halt/Resume and Reset Functions When the button S1 is pushed, the counting should stop and the current number should remain on the display. Pushing S1 again should resume the counting from the currently displayed value. Pushing S2 should reset the count to zero. If the reset is performed during counting, the value should go to zero and the counting should continue. If the reset is performed when the counting is halted, the value should go to zero and the stopwatch should remain halted. Indicate the counting/halted status using the LED lights. When the stopwatch is counting, the green LED should be on. When the stopwatch is halted, the red LED should be on.