First, we will glow Red Led for 5 seconds then we will turn off the Red Led and glow the Green Led for 5 seconds. Similarly, we will turn off Green Led and then glow Yellow Led for 5 seconds. It will run continuously until we stop the simulation.
1. Click on the code button.
2. Drag and Drop the “set pin to” block in the “coding area”. Then for glowing the Red Led set the pin to “6” as “HIGH” and give a wait of 5 seconds.
3.Similarly, Repeat the above step for Green and yellow LEDs as shown below: