Toggle LED with Switch (off same Adruino PIN)

Although what you "could" do is have a toggle-switch in series with the LED.... 8) Then you wouldn't even need an i/o pin or any code, just the Arduino's 5v....

toggle.jpg