Skip to content

arduino279/Servo-Motor-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Servo Motor Module

Get Started

Import

  1. Look up Servo-Motor-Module in the Library Manager and install the latest version
  2. Insert the following snippet
#include <Servo-Motor-Module.h>

Setup

Servo2 [name];

Example

Servo2 example;

Use

[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);