Digital Input & Output

Azizmasrur
Feb 26, 2024

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.

Arduino IDE

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Azizmasrur
Azizmasrur

No responses yet

Write a response