Go Down

Topic: (Solved) Problem running 2 motors (Read 5686 times) previous topic - next topic

AWOL

Code: [Select]
myservo.attach(8); // attaches the servo on pin 7 to the servo object
I know which one the compiler believes.
(you may as well leave such comments out altogether - the purpose is obvious from the function call)

CyberBob

#16
Aug 12, 2013, 11:56 am Last Edit: Aug 12, 2013, 12:09 pm by CyberBob Reason: 1
Well spotted! Overlooked this whilst swapping pins around. Also I should have said avoiding analogWrite to PWM pins 9, 10, and 11 which the servo library blocks

AWOL

Quote
Also I should have said avoiding analogWrite to PWM pins 9, 10, and 11

Or you could just refer the reader to the library documentation.
I didn't think pin 11 was affected.

Go Up