67. Simultaneous Blinking LEDs

Design a task using the Arduino Uno based on the following requirements:

  1. Two LEDs must be connected to the Arduino Uno.
  2. The LEDs should blink at different intervals—one at 100 ms and the other at 360 ms.
  3. The timing of the blinks must be as precise as possible.

Consider the following condition

  • An important task is continuously running in a void loop().
  • It needs to be executed continuously, and cannot be altered or changed.

Your void loop() should be as given below.

void loop()
{
	while(true)
		{
			//In this loop, the Microcontroller is busy    monitoring and performing important tasks constantly.
		}
}

 

 

 

 

Submit Your Solution