Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
bbc-microbit-io
Advanced tools
Readme
Johnny-Five IO Plugin for the BBC micro:bit
npm install bbc-microbit-io johnny-five
var five = require('johnny-five');
var microbitio = require('bbc-microbit-io');
var board = new five.Board({
io: new microbitio({
// id: '<id of micro:bit>', // optional
// address: '<address of microbit>' // optional
})
});
board.on('ready', function() {
// do Johnny-Five stuff
});
See examples folder as well as Johnny-Five examples.
See Johnny-Five API docs.
Johnny-Five Compatible Name | Number | Supported Modes |
---|---|---|
A0 | 0 | Input, Output, Analog, PWM |
A1 | 1 | Input, Output, Analog, PWM |
A2 | 2 | Input, Output, Analog, PWM |
A3 | 3 | Input, Output, Analog, PWM |
A4 | 4 | Input, Output, Analog, PWM |
5 | Input, Output | |
6 | Input, Output | |
7 | Input, Output | |
8 | Input, Output | |
9 | Input, Output | |
A5 | 10 | Input, Output, Analog, PWM |
11 | Input, Output | |
12 | Input, Output | |
13 | Input, Output | |
14 | Input, Output | |
15 | Input, Output | |
16 | Input, Output | |
17 | - | |
18 | - | |
19 | Input, Output | |
20 | Input, Output |
Type | Usage | Johnny-Five type |
---|---|---|
Accelerometer | new microbitio.Accelerometer(); | five.Accelerometer |
Button | new microbitio.Button('A'); or new microbitio.Button('B'); | five.Button |
Compass | new microbitio.Compass(); | five.Compass |
LED Matrix | new microbitio.LedMatrix(); | five.Led.Matrix |
Thermometer | new microbitio.Thermometer(); | five.Thermometer |
FAQs
Johnny-Five IO Plugin for the BBC micro:bit
The npm package bbc-microbit-io receives a total of 3 weekly downloads. As such, bbc-microbit-io popularity was classified as not popular.
We found that bbc-microbit-io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.