- Look up
Servo-Motor-Module
in the Library Manager and install the latest version - Insert the following snippet
#include <Servo-Motor-Module.h>
Servo2 [name];
Example
Servo2 example;
[name].attach(int pin);
Parameters
pin
Pin of the Servo
Example
example.attach(9);
[name].move(int angle);
Parameters
angle
Angle to rotate
Example
example.move(6);