Control servos via a SSC or Torobot servo controller
A library for controlling servos connected to a SSC or Torobot servo controller board. API modelled after Johnny-Five
npm install torque
var torque = require'torque';var board =port: '/path/to/fd';boardon'ready'var servo =pin: 1pwmRange: 600 2400 // defaults to 1000 - 2000;servomove45 500; // rotate to 45 degrees, and take 500ms to do so// wait 2 seconds then...boardwait2000servomove130; // rotate to 130 degrees, take the default time of 100ms to do so;;
loop(ms, callback) and
wait(ms, callback), however if you need to use more complicated event loop
programming such as queues or repeat x times, please feel free to use compulsive.
If you have one of these boards, please help out.
$ git checkout -b myfeature developor off master for a bug fix
$ git checkout -b hotfix-issue1 master
npm testin the root folder