Two loops???

In the blink without delay example, there's a variable called "interval".
Try setting the value of it using your potentiometer.