I've read in other places that it can cause damage to the LED if you don't use a resistor.
I'm now trying to do a project where you push a button to get the LED to light up (using resistors) but that's not working.
I tried it WITHOUT the resistors (ground to the short end of the LED) and it worked perfectly. I've read in other places that it can cause damage to the LED if you don't use a resistor.
Post the code that you know is right (then we'll know it's right too). Post one picture which shows exactly how your LED and resistor are wired and tell us the type of LED and the value of the resistor. No videos needed...a video of an LED not lighting up is spectacularly useless!Steve
Happy to post a photo but how do you upload the photo?
The output pins of the Arduino (and indeed any transistor) have some effective on resistance