Digital Input & Output

I wanted to create a strobing effect that looked similar to police sirens. I aligned 3 LED’s of different color that turn on in sequence repeatedly. For the code, I had to define 3 pinMode since there are 3 LED’s. To have them turn on and off we use high and low. To get a quick strobing effect, I made sure the delay in milliseconds was very short as shown below. For future ideas, I think it would be nice to incorporate a switch or dial to control the brightness.
