{"id":14437163,"url":"https://github.com/sandeepmistry/node-bbc-microbit-io","last_synced_at":"2025-03-15T13:31:08.073Z","repository":{"id":143852664,"uuid":"63009995","full_name":"sandeepmistry/node-bbc-microbit-io","owner":"sandeepmistry","description":"Johnny-Five IO Plugin for the BBC micro:bit","archived":false,"fork":false,"pushed_at":"2017-02-16T16:44:20.000Z","size":279,"stargazers_count":17,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T02:53:58.075Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandeepmistry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-10T17:19:12.000Z","updated_at":"2023-10-12T05:23:43.000Z","dependencies_parsed_at":"2024-01-07T18:07:23.985Z","dependency_job_id":null,"html_url":"https://github.com/sandeepmistry/node-bbc-microbit-io","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/sandeepmistry%2Fnode-bbc-microbit-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepmistry%2Fnode-bbc-microbit-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepmistry%2Fnode-bbc-microbit-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepmistry%2Fnode-bbc-microbit-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandeepmistry","download_url":"https://codeload.github.com/sandeepmistry/node-bbc-microbit-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735823,"owners_count":20339535,"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-08-31T08:00:24.645Z","updated_at":"2025-03-15T13:31:07.357Z","avatar_url":"https://github.com/sandeepmistry.png","language":"JavaScript","funding_links":[],"categories":["编程","🗿 JavaScript and MakeCode"],"sub_categories":["JavaScript 和 MakeCode","🗿 Node.js and Browser"],"readme":"# bbc-microbit-io\n\n![logo](images/microbit-j5.png)\n\n[Johnny-Five](https://github.com/rwaldron/johnny-five) [IO Plugin](https://github.com/rwaldron/io-plugins) for the [BBC micro:bit](https://www.microbit.co.uk/)\n\n## Prerequisites\n\n * [BBC micro:bit](https://www.microbit.co.uk/)\n * Bluetooth Low Energy capable Mac or Linux computer\n   * See [node-bbc-microbit prerequisites](https://github.com/sandeepmistry/node-bbc-microbit#prerequisites)\n\n## Getting Started\n\n```sh\nnpm install bbc-microbit-io johnny-five\n```\n\n## Boilerplate Program\n\n```javascript\nvar five = require('johnny-five');\nvar microbitio = require('bbc-microbit-io');\n\nvar board = new five.Board({\n  io: new microbitio({\n    // id: '\u003cid of micro:bit\u003e', // optional\n    // address: '\u003caddress of microbit\u003e' // optional\n  })\n});\n\nboard.on('ready', function() {\n  // do Johnny-Five stuff\n});\n```\n\n## Examples\n\nSee [examples](examples) folder as well as [Johnny-Five examples](http://johnny-five.io/examples/).\n\n## API\n\nSee  [Johnny-Five API docs](http://johnny-five.io/api/).\n\n## Pin Guide\n\n| Johnny-Five Compatible Name | Number | Supported Modes |\n|-----------------------------|--------|-----------------|\n| A0 | 0 | Input, Output, Analog, PWM |\n| A1 | 1 | Input, Output, Analog, PWM |\n| A2 | 2 | Input, Output, Analog, PWM |\n| A3 | 3 | Input, Output, Analog, PWM |\n| A4 | 4 | Input, Output, Analog, PWM |\n| | 5 | Input, Output |\n| | 6 | Input, Output |\n| | 7 | Input, Output |\n| | 8 | Input, Output |\n| | 9 | Input, Output |\n| A5 | 10 | Input, Output, Analog, PWM |\n| | 11 | Input, Output |\n| | 12 | Input, Output |\n| | 13 | Input, Output |\n| | 14 | Input, Output |\n| | 15 | Input, Output |\n| | 16 | Input, Output |\n| | 17 | - |\n| | 18 | - |\n| | 19 | Input, Output |\n| | 20 | Input, Output |\n\n\n![micro:bit pinouts](https://az742082.vo.msecnd.net/pub/xdossmmf)\n\n## Additional Features\n\n| Type | Usage | Johnny-Five type |\n| ---- | ----- | -------- |\n| Accelerometer | `new microbitio.Accelerometer();` | [five.Accelerometer](http://johnny-five.io/api/accelerometer/) |\n| Button | `new microbitio.Button('A');` or `new microbitio.Button('B');` | [five.Button](http://johnny-five.io/api/button/) |\n| Compass | `new microbitio.Compass();` | [five.Compass](http://johnny-five.io/api/compass/) |\n| LED Matrix | `new microbitio.LedMatrix();` | [five.Led.Matrix](http://johnny-five.io/api/led.matrix/) |\n| Thermometer | `new microbitio.Thermometer();` | [five.Thermometer](http://johnny-five.io/api/thermometer/) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandeepmistry%2Fnode-bbc-microbit-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandeepmistry%2Fnode-bbc-microbit-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandeepmistry%2Fnode-bbc-microbit-io/lists"}