Multitasking arduino code for servo operation

Well my personal favority is this tutorial