The PTD4, PTD5 terminals/pins of the microcontroller are connected with 2 leds, one red and one green, respectively.
Write a program to simulate the signals of a pedestrian traffic light.
Specifically, the car lantern will light up for 10 seconds, then turn off and turn on the pedestrian traffic light for 7 seconds.
This process is repeated constantly. Find a way to solve the problem without using three different subroutines delay in the program.