button
piezyxw
Posts: 9
stupid question but schematics and code for getting a button to turn an led on and off. I think my board is messed but just want to check. Thanks
Comments
Really simple code could be: This would mirror the input state of pin #5 to pin #6. Typically, you'd have an LED with a 1K resistor in series with it between pin #6 (anode) and ground (cathode). You could use either schematic on page 139.