7 segment with 2 buttons (Stopwatch)/(Timer)

k

Can you help me with the code?

No. Those requirements sound an awful like a homework assignment. We will not help you cheat.