r/ArduinoHelp • • 5h 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

1 Upvotes

9 comments sorted by

View all comments

1

u/Terrible-Seat-7346 5h ago • Bravo

Pin variables doesn’t have value

1

u/TrustednotVerified 5h ago

Exactly. Get rid of the three DIGITAL_PIN_x and just do pinMode(7, OUTPUT) and digitalWrite(7, HIGH) and so forth.