Class: Servo

Servo

new Servo(pins)

servo.js, line 10
Servo module.
Name Type Description
pins Array The pin numbers.

Methods

rotate(degree){Number}

servo.js, line 35
Rotate the servo.
Name Type Description
degree Number The degree is between 0 and 180.
Returns:
Type Description
Number Current rotation degree.