microbit-web-bluetooth
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

micro:bit Web Bluetooth

npm License

Web Bluetooth library for micro:bit implementing the micro:bit Bluetooth Profile.

See the microbit-web-components library for some ready-to-use web components which use this library.

Prerequisites

Node.js > v10.16.0, which includes npm

Getting Started

Refer to the micro:bit Web Bluetooth API Documentation for more information.

Implementation Status

  • [x] micro:bit Discovery
  • [x] Service enumeration

Device Information Service

  • [x] Model Number
  • [x] Serial Number
  • [x] Hardware Revision
  • [x] Firmware Revision
  • [x] Manufacturer

LED Service

  • [x] LED Matrix State
  • [x] LED Text
  • [x] Scrolling Delay

Button Service

  • [x] Button A State
  • [x] Button A State Changed Event
  • [x] Button B State
  • [x] Button B State Changed Event

Temperature Service

  • [x] Temperature
  • [x] Temperature Changed Event
  • [x] Temperature Period

Accelerometer Service

  • [x] Accelerometer Data
  • [x] Accelerometer Data Changed Event
  • [x] Accelerometer Period

Magnetometer Service

  • [x] Magnetometer Data
  • [x] Magnetometer Data Changed Event
  • [x] Magnetometer Period
  • [x] Magnetometer Bearing
  • [x] Magnetometer Bearing Changed Event
  • [x] Magnetometer Calibration

UART Service

  • [x] Send
  • [x] Receive Event
  • [x] SendString
  • [x] ReceiveString Event

Event Service

  • [x] MicroBit Requirements
  • [x] MicroBit Event
  • [x] Client Requirements
  • [x] Client Event

IO Pin Service

  • [x] Pin Data
  • [x] Pin Data Changed Event
  • [x] Pin AD Configuration
  • [x] Pin IO Configuration
  • [x] PWM Control

DFU Control Service

  • [x] Request DFU
  • [x] Request Flash Code

Package Sidebar

Install

npm i microbit-web-bluetooth

Weekly Downloads

52

Version

0.7.0

License

MIT

Unpacked Size

1.41 MB

Total Files

101

Last publish

Collaborators

  • thegecko