and it didnt work.
The code does something. You expect it to do something. "It didn't work" says that the two somethings are not the same thing, but doesn't say what either one is.
VarSpeedServo myservo;
VarSpeedServo myservo2;
How can you have #2 without having #1? A pet peeve of mine...