Servo help

I’ve been trying to use the servo library but it refuses to work, it doesn’t work, even on an oscilloscope, Help!

#include <Servo.h>

Servo myservo;

void setup() {
myservo.attach(2) // attaches a servo connected to pin 2
}

void loop() {
myservo.write(90); // position the servo angle at 90 degrees
}

any help please

Greetings,

You will have to call MyServo.refresh() in the loop at least every 50mS or this won't work.

Regards, David