control servo using array

Generally we control servo motor using simple commands like servo.write() function, but you can also control servo using array. For this use the following code to control it effectively.