pi-servo

1.0.2 • Public • Published

node-pi-servo

A Node.js libraly for controlling servo motor using the pi-blaster.

Requirements

pi-blaster

Installation

npm install pi-servo

Usage

var PiServo = require('pi-servo');

// pass the GPIO number
var sv1 = new PiServo(4); 

sv1.open().then(function(){  
  sv1.setDegree(100); // 0 - 180
});

Lisence

MIT

Package Sidebar

Install

npm i pi-servo

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sashimizakana