I'm new to Arduino and to this forum. I apologize if this isn't the right place to post this – let me know and I'll make any necessary correction that I can.
My question has to do with Example 4-2 in Getting Started with Arduino, 3rd Ed. – turning on an LED while the button is pressed. When I release the button, the light either a) fades or b) stays on for a second, then turns off. But it's supposed to turn off immediately upon release, right? I've checked and rechecked the code and the wiring.
Is this where you learn about pullup/pulldown resistors and their role in switches and buttons? Make sure you've got that right, if so... every newbie gets confused by pullup/pulldown resistors the first time they use a button.