using ESC to control motor speed

for example if I send a 'HIGH' signal every 20ms and use the potentiometer to change a variable that pauses the HIGH signal between 1000-2000 microsec's?

This is exactly what the servo library do, no need to invent your own.