arduino279 / Servo-Motor-Module

Control Servo Motors

Repository from Github https://github.comarduino279/Servo-Motor-ModuleRepository from Github https://github.comarduino279/Servo-Motor-Module

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

About

Control Servo Motors

License:Other


Languages

Language:C++ 100.0%