18. Bar Graph

Connect 5 LEDs and a potentiometer to a microcontroller and create the following pattern.

 

Submit Your Solution

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