Yes, my coded toggles the light off and on endlessly. Only when I hold the switch, the light will stay on.
The LED is wired anode to 5V cathode to pin 4. The switch is wired to pin 6 and ground.
I am not certain but it should be active-low (please don't roast me if I am wrong).
Thank you.