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

We can observe alternate LED fade-in/out patterns. Where the fading speed is controlled by a potentiometer, smoothly.
Speed Control:
- When the knob is turned toward 0%, the LEDs fade quickly.
- When the knob is turned toward 100%, the LEDs fade slowly.