My servo comes to 0 when I use attach function.
Here is the code I used:
#include <VarSpeedServo.h>
VarSpeedServo test;
void setup() {
// put your setup code here, to run onc
test.attach(2);
}
void loop() {
// put your main code here, to run repeatedly:
}