Traffic light intersection simulation project

Here

and

and

  • blink without delay IDE example

and google

arduino two things at once

arduino finite state machine

and play with the IDE examlpe blink without delay until you get a good grip on it. There is a competent article

https://docs.arduino.cc/built-in-examples/digital/BlinkWithoutDelay/

the code is a available in the IDE examples menu.

a7