It is an Adruino IDE code. I have attached the circuit below. The circuit is for thw digital clock. I want the code for the circuit. The criteria is: The code must include subfunctions and nested loop.

You can built the same circuit on Tinkercad and test you code if it runs or not. Help will be appreciated. Thanks
Note: The code should be real and unique. Should not be the copy paste from the internet.
  • attachment

    20201209_021032.jpg