12. Implement a 4-bit binary counter

Connect 2 push button switches and 4 LEDs to the microcontroller’s GPIO pins and design a 4-bit binary counter as shown in the image below.

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

Example using Arduino UNO:

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!