Torque
A library for controlling servos connected to a SSC or Torobot servo controller board. API modelled after Johnny-Five
Install
npm install torque
Example
var torque = ;var board = port: '/path/to/fd'; board;
Torque.Board
provides 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.
Contributing
If you have one of these boards, please help out.
- Fork the project, and run
npm install
- Create a branch off develop for a feature;
$ git checkout -b myfeature develop
or off master for a bug fix$ git checkout -b hotfix-issue1 master
- Add tests where you can
- Implement your feature or bug fix
- un tests by running
npm test
in the root folder - Commit and push your changes. You could use a pre-commit hook to make the combine the last 2 steps.
- Submit your pull request
Compatable boards
- Torobot Confirmed
- SSC
- Sonxun