Skip to content

danielemazzei/Viper-servo-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

=================== Viper Servo library

This module contains Viper class definitions for servo motors. The Servo class provides methods for handling generic servo motors connected to pins endowed with PWM. It also provides easily accessible attributes for direct control motor position with pulse width or degree.

Every Servo instance implements the following methods:

* attach: connects the servo motor and sets the default position
* detach: sets the PWM pulse width of the instanced servo to 0 disconnecting the motor
* moveToDegree: sets the servo position to the desired angle passed as float
* moveToPulseWidth: sets the servo position to the desired raw value expressed as pulse width (int) milliseconds
* getCurrentPulseWidth: returns the current servo position in pulse width (int) milliseconds
* getCurrentDegree: returns the current position in degrees

Author: Daniele Mazzei Contributor: Giacomo Baldi

License GPL3, copyright Viper Team 2015

info www.viperize.it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages