How to toggle an LED using a switch in Arduino? Simplest code without de-bouncing
This code is the simplest code to toggle an LED using a switch using Arduino UNO or Arduino Nano. Be careful about the connections of resistor, switch and LED together. Just use the following code, burn it in your Arduino…