JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q33031F
  • License MIT

Asynchronous functions for the Lego Boost Move Hub package

Package Exports

  • movehub-async

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (movehub-async) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

movehub async

npm version

Asynchronous functions for the Lego Boost Move Hub

Install

$ npm install movehub-async

Usage

const boost = require('movehub-async');

await boost.bleReadyAsync();
const connectDetails = await boost.hubFoundAsync();

const hub = await boost.connectAsync(connectDetails);
await hub.connectAsync();

await hub.ledAsync('red');
await hub.ledAsync('yellow');
await hub.ledAsync('green');

Tester

tester.js

Example project

lego-boost-ai