This is a Nx monorepo for rxPoweredUp 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.
Clone the repository and run the following command in the root folder:
npm install
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 can be run by opening the corresponding HTML files in the browser. Examples are located in the apps/examples/browser
folder.
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
LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this application.