A proper way to use a button and an LED

Using a LED and switch on the same I/O pin, not for the faint of heart:

3 Likes