Blinking and Dimming Several LEDs at the Same Time

I'm struggling to incorporate a Potentiometer input into the code which can dim/brighten the lights without interuppting the blinking patterns. I've tried several variations but they either end up blocking or changing the lights to be constant.

split it in simple tasks

  • read a potentionemter
  • set a PWM Value to the given ADC Read out
  • Blink a LED (or many LEDs) between dark(off) and the calculated PWM value

is that correct?
If not describe your feature in your own words in as short sentences as you can.