Hardware Servo: Example Code

cmaglie:
In attachment a zip with a copy of the files. Unzip it into hardware/arduino/sam/libraries.

Thank you, I did that, and the example Sweep compiled.

How about using pins 26, 28 and 30 for a Servo?

Does it have to be pin 9?

Greetings, Conrad

P.S.: I tried with pins 26, 28 and 30. There seems to be something going on, because I see the LEDs connected (via a 1 K resistor to GND) to these pins dimming and getting brighter as the Servo example Sweep should do. Seems I am set up, thank you C.

P.S.: Servo works on pin 30. So, download the library (ZIP-File) from cmaglie's post above this post, and you are set to use Servos with the Arduino Due.