- Look up
Servo-Motor-Modulein 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
pinPin of the Servo
Example
example.attach(9);[name].move(int angle);Parameters
angleAngle to rotate
Example
example.move(6);