{"id":18074140,"url":"https://github.com/bytespider/torque","last_synced_at":"2025-04-12T05:45:26.536Z","repository":{"id":8844274,"uuid":"10550193","full_name":"bytespider/Torque","owner":"bytespider","description":"A library for controlling servos connected to a SSC or Torobot servo controller board. API modelled after Johnny-Five","archived":false,"fork":false,"pushed_at":"2013-06-11T19:36:47.000Z","size":177,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-12T05:45:16.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytespider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-07T13:16:58.000Z","updated_at":"2013-10-28T18:21:15.000Z","dependencies_parsed_at":"2022-08-30T05:52:50.498Z","dependency_job_id":null,"html_url":"https://github.com/bytespider/Torque","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FTorque","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FTorque/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FTorque/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FTorque/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytespider","download_url":"https://codeload.github.com/bytespider/Torque/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525154,"owners_count":21118616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T10:11:23.255Z","updated_at":"2025-04-12T05:45:26.503Z","avatar_url":"https://github.com/bytespider.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Torque\n======\n\n[![Build Status](https://travis-ci.org/bytespider/Torque.png?branch=master)](https://travis-ci.org/bytespider/Torque)\n\nA library for controlling servos connected to a SSC or Torobot servo controller board. API modelled after [Johnny-Five](https://github.com/rwldrn/johnny-five)\n\n\nInstall\n-------\n    npm install torque\n\n\nExample\n-------\n\n```javascript\nvar torque = require('torque');\nvar board = new torque.Board({\n    port: '/path/to/fd'\n});\n\nboard.on('ready', function () {\n    var servo = new torque.Servo({\n        pin: 1, \n        pwmRange: [ 600, 2400 ] // defaults to 1000 - 2000\n    });\n    servo.move(45, 500); // rotate to 45 degrees, and take 500ms to do so\n    \n    // wait 2 seconds then...\n    board.wait(2000, function () {\n        servo.move(130); // rotate to 130 degrees, take the default time of 100ms to do so\n    });\n});\n```\n\n`Torque.Board` provides `loop(ms, callback)` and `wait(ms, callback)`, however if you need to use more complicated event loop\nprogramming such as queues or repeat x times, please feel free to use [compulsive](https://npmjs.org/package/compulsive).\n\n\nContributing\n------------\n\nIf you have one of these boards, please help out.\n\n1. **Fork** the project, and run `npm install`\n2. **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`\n3. **Add tests** where you can\n4. **Implement** your feature or bug fix\n5. **un tests** by running `npm test` in the root folder\n6. **Commit** and push your changes. You could use a [pre-commit hook](https://gist.github.com/bytespider/5748723) to make the combine the last 2 steps.\n7. **Submit** your pull request\n\n\nCompatable boards\n-----------------\n\n* Torobot *Confirmed*\n* SSC\n* Sonxun\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2Ftorque","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytespider%2Ftorque","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2Ftorque/lists"}