Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 693 Bytes

readme.md

File metadata and controls

54 lines (37 loc) · 693 Bytes

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