Socket
Socket
Sign inDemoInstall

bbc-microbit-io

Package Overview
Dependencies
26
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bbc-microbit-io

Johnny-Five IO Plugin for the BBC micro:bit


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Install size
13.8 MB
Created
Weekly downloads
 

Readme

Source

bbc-microbit-io

logo

Johnny-Five IO Plugin for the BBC micro:bit

Prerequisites

Getting Started

npm install bbc-microbit-io johnny-five

Boilerplate Program

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
});

Examples

See examples folder as well as Johnny-Five examples.

API

See Johnny-Five API docs.

Pin Guide

Johnny-Five Compatible NameNumberSupported Modes
A00Input, Output, Analog, PWM
A11Input, Output, Analog, PWM
A22Input, Output, Analog, PWM
A33Input, Output, Analog, PWM
A44Input, Output, Analog, PWM
5Input, Output
6Input, Output
7Input, Output
8Input, Output
9Input, Output
A510Input, Output, Analog, PWM
11Input, Output
12Input, Output
13Input, Output
14Input, Output
15Input, Output
16Input, Output
17-
18-
19Input, Output
20Input, Output

micro:bit pinouts

Additional Features

TypeUsageJohnny-Five type
Accelerometernew microbitio.Accelerometer();five.Accelerometer
Buttonnew microbitio.Button('A'); or new microbitio.Button('B');five.Button
Compassnew microbitio.Compass();five.Compass
LED Matrixnew microbitio.LedMatrix();five.Led.Matrix
Thermometernew microbitio.Thermometer();five.Thermometer

Keywords

FAQs

Last updated on 14 Jul 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc