microBit.js

A javascript library to interact with BBC micro:bit using web bluetooth API

View the Project on GitHub

microBit.js

A javascript library to interact with BBC micro:bit using web bluetooth API. lars the iceberg

Usage

To use the library, download and upload this firmware on your BBC micro:bit board.

The firmware was produced by bittysoftware.

Keep in mind that web bluetooth API are still experimental and your OS and browser might not support the feature. Read more about this here.

This Library allows you to read and write the values of all the BLEcharacteristic exposed by the microBit board using simplified API’s.

For more info about all micro:bit ble services please refer to the official documentation.

The example folder provided contains several examples for interacting with the device.

Constructor

Properties

Functions

Examples

Check the examples folder for working examples.

Basic example

Connect your microbit to a webpage, visualize the data and change the animations on the led matrix.

Try it here

web ble demo

basic p5.js example

Learn how to interact with the microbit from a p5.js sketch, rotate a cube on the canva reading the accelerometer.

Try it here

Lars the iceberg

Use the microBit to control Lars the iceberg. Don’t let it melt! Developed using p5.js and p5.play library.

Try it here