r/ArduinoHelp • • 28d ago

Why does this not work?

Post image

solved

when i click simulate nothing happens and the leds dont light up can anyone help

link: https://www.tinkercad.com/things/etCLO5FP0u8-traffic-light?sharecode=HVc9FlY7vOl6OchoP0UERVxlCc9BG0PDwAbMSnomTys

7 Upvotes

15 comments sorted by

View all comments

0

u/fat_jak 26d ago

"Your C++ code has a bug. You need to assign the pin numbers: int DIGITAL_PIN_7 = 7;, int DIGITAL_PIN_6 = 6;, int DIGITAL_PIN_5 = 5;. Otherwise, they all default to pin 0."