servo code

i need to find a code to spin a servo continuously in a circle and if possible please include in the code a potentiometer controlling the speed thank you in advance

Have you tried the knop example:

yes but that is not what i am looking for