9. Implement a 4-bit binary counter

Connect 2 switches and 4 LEDs to Arduino UNO GPIO pins and design a 4-bit binary counter as shown in the below image.

Where one switch is used for increment and the other to decrement the counter. The counter value will be displayed on 4 LEDs.

Example


 

 


 

Submit Your Solution