pi-servo
Version:
A Node.js libraly for controlling servo motor using the pi-blaster
30 lines (19 loc) • 429 B
Markdown
A Node.js libraly for controlling servo motor using the pi-blaster.
[](https://github.com/sarfata/pi-blaster)
```bash
npm install pi-servo
```
```node
var PiServo = require('pi-servo');
// pass the GPIO number
var sv1 = new PiServo(4);
sv1.open().then(function(){
sv1.setDegree(100); // 0 - 180
});
```
MIT