r/ArduinoHelp • u/VinMega6468 • 29d ago
Why does this not work?
solved
when i click simulate nothing happens and the leds dont light up can anyone help
7
Upvotes
r/ArduinoHelp • u/VinMega6468 • 29d ago
when i click simulate nothing happens and the leds dont light up can anyone help
View all comments
3
u/Carlss32 29d ago
The issue is that you declared none in the pins, after defining int pins.
It should be like this, assuming:
Digital_Pin = 7;
Another tips. The variable name should be aligned to what purpose it was. Example, the thing you want to create a simple correct or incorrect visual feedback.
Therefore, it should be like this:
So, with this, it makes your pins more concise of what their purpose would be. Another thing, ensure that your resistor is not too high because this may dim the LED light. Calculating the correct resistor output is ideal, or stick with standard value (220 ohms)