Resistors not needed

slipstick:
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?