Using a potentiometer with 7-segment display causes flickering

3 posts were merged into an existing topic: Arduino with 7-segment display and potentiometer and display is flickering