In this application, we will flash blue and red LEDs used in ambulances, police vehicles and other vehicles.
Three red LEDs are connected to digital outputs. (13,12,11 pins)
Blue leds are also connected to digital outputs. (10,9,0 pins)
As we will remember from the previous examples, we can light the red and blue leds as we want with digitalWrite commands.
Arduino codes are below: