loading

Servo not responding.?

I am sure I wrote something wrong. Funny thing, when I first hooked up the servo, it was turning before I wrote and sent the program. I wrote the following as I understood your instructions. Please help.

#include <Servo.h>

Servo ContinuousServo1;

void setup() {

// put your setup code here, to run once:

ContinuousServo1.attached(9);

ContinuousServo1.write(94);

}

void loop() {

// put your main code here, to run repeatedly:

ContinuousServo1.write(70);

}

exit status 1

no matching function for call to 'Servo::attached(int)'


randofo2 months ago

It should be:

ContinuousServo1.attach(9);

Not:

ContinuousServo1.attached(9);