servo signal pin

Hi, I have a very dumb question. Most of the tutorials I have read so far, the signal line of a servo is always connect to the PWM pin on the Arduino. I have tried to connect it to the digital pin 22 on the Mega, and the servo seem to work just fine. I am wondering if the signal pin has to be on the PWM, if there is a downside using a digital pin instead?

Thanks.

It can be any pin, even a analog pin. There is no downside. The library just uses digitalWrite to drive the selected pin. The library only disables the PWM function of pins 9 and 10 on the Uno.

septillion: The library only disables the PWM function of pins 9 and 10 on the Uno.

This is quite correct but it is only relevant if you need to use the analogWrite() function in addition to controlling your servo(s). For example if you also want to control the speed of a DC motor or the brightness of an LED.

...R

Yes, like I said, the PWM funtionality. Not the pins them self...