Mellis modified by Limor Fried This example code is in the public domain. The circuit: * LED attached from pin 13 to ground * pushbutton attached from pin 2 to +5V * 10K resistor attached from pin 2 to ground * Note: On most Arduino boards, there is already an LED on the board connected to pin 13, so you don't need any extra components for this example. There's a minimum delay between toggles to debounce the circuit (i.e. because of a push-button press), the output pin is toggled from LOW to HIGH or HIGH to LOW. ![]() ![]() * Debounce Each time the input pin goes from LOW to HIGH (e.g.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |