RC servo control

Thanks for the reply. I'm sorry but I have not got any code yet (except the 180 degree sweep from the library). Could you explain how to alter this code...or give me an example of say..0 to 180 degrees sweep with a 5 second pause at the 180, then to 90 with a 3 sec delay..then back to 0. I reckon I will then be able to make my own adjustments to the code to get the effect I'm after. Thanks.