In this application, we will use two digital output pins of the Arduino UNO board. These pins are pins 13 and 12. We will set these pins as output pins using the pnMode command.
A 1K resistor and LED are connected to each pin. Here's what we need to remember: We can draw a maximum of 40 mA from each of the digital outputs. Since we are connecting a 1K resistor, this means we will not draw maximum current.
Desired delay can be achieved with the “delay” command. The LEDs can be made to burn faster or slower.