Servo motor pwm on analog

I’ve read that the analog inputs does not support PWM. However, when I connect a servo motor to an analog input, I have no trouble getting it to work. Why is that?

#include <Servo.h>
Servo servo1;

void setup() {
  servo1.attach(A0);
  servo1.write(10);
}

Bassusour:
I’ve read that the analog inputs does not support PWM. However, when I connect a servo motor to an analog input, I have no trouble getting it to work. Why is that?

Because the servo library doesn’t use PWM (in the analogWrite() sense) in the first place. You can have servos on non-PWM digital pins too.

Oh ok, thanks!