Design a task to switch between two LED patterns using a push button.
Also, consider the following condition
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 Microcontroller is busy in monitoring and performing important tasks constantly.
}
}
Requirements