Programming: Toggle Two LEDs when Push Button is Pressed for AVR

Making a program for the Atmel AVR microcontroller to toggle two LEDs when a push button switch is pressed. When the push button is pressed and released, one LED is on, and when the push button is pressed and released again, the on LED is turned off and the other LED is turned on.



Back to blog

Leave a comment

Please note, comments need to be approved before they are published.