arduino-libraries / Servo

Servo Library for Arduino
http://arduino.cc/
GNU Lesser General Public License v2.1
257 stars 263 forks source link

Raspberry Pico Compatibility; attach parameters #89

Open PJ789 opened 2 years ago

PJ789 commented 2 years ago

When using an AVR based board, I usually initiate servo with the following;-

  radar_servo.attach(RADAR_SERVO_POSITION_PIN,500,2360);  // NANO attaches the servo on pin 9 to the servo object

When migrating to Pico I found those parameters send the servo crazy, and instead simply using the following worked;-

  radar_servo.attach(RADAR_SERVO_POSITION_PIN);  // PICO attaches the servo on pin 9 to the servo object