Skip to content

RxJS-based TypeScript library for controlling LEGO Powered UP devices

License

Notifications You must be signed in to change notification settings

nvsukhanov/rxPoweredUp

Repository files navigation

rxPoweredUp

GitHub license CI Status NPM Version

This is a Nx monorepo for rxPoweredUp packages.

Packages

  • rxPoweredUp - A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.
  • toolbox - A web-based toolbox for probing hub & peripheral capabilities, testing rxPoweredUp library and reverse-engineering LEGO Powered UP protocol. Live demo can be found here.
  • examples - Examples of using rxPoweredUp library in Node.js and browser environments.

Installation

Clone the repository and run the following command in the root folder:

npm install

Toolbox

To run the toolbox app, execute the following command in the root folder:

npm run start:toolbox

Then open http://localhost:4200 in the browser.

Browser examples

Browser examples can be run by opening the corresponding HTML files in the browser. Examples are located in the apps/examples/browser folder.

Node.js examples

To compile Node.js examples, execute

npm run build:node-examples

Compiled examples will be placed in the dist/node-examples folder and can be run using node command, e.g.:

node dist/node-examples/motor-speed.mjs

Disclaimer

LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this application.