jakorten / WebPBrick

Web-based IDE for programming the LEGO Mindstorms RCX using NQC with modern technologies

Home Page:https://www.webpbrick.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

This git repository provides the source codes for the WebPBrick project and hence the webpbrick.com website.

WebPBrick How To

  1. Build your NQC code (click the "Build" button)
  2. Connect to the yellow programmable RCX brick using an infrared tower (click the "Serial Connect" button)
  3. Download your compiled program to the RCX (click the "Download program to RCX" button)

Toolchain modules

Toolchain block diagram

WebPBrick's toolchain consists of several modules:

  • WebNQC: The NQC compiler built as WebAssembly (WASM) for the web using emscripten.
  • RCX image parser written in Kaitai Struct and compiled to JavaScript to parse and split RCX image binary files so that they can be downloaded to the RCX in their bytecode chunks.
  • RCX communication libraries:
    • Based on Web Serial API to be used with the LEGO IR Serial Tower and DIY IR serial towers
    • Based on WebUSB API to be used with LEGO IR USB Tower

Run

Start a local webserver, e.g. using Python:

python -m http.server 8080

Open your webbrowser and navigate to http://localhost:8080/ide/

Licenses

This project is a collection of modules and open source software.

Module License
NQC / WebNQC Mozilla Public License 2.0
NQC example code by D. Baum and R. Zurcher Freeware License
all others WebPBrick modules GNU GPLv3

Disclaimer

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

About

Web-based IDE for programming the LEGO Mindstorms RCX using NQC with modern technologies

https://www.webpbrick.com

License:GNU General Public License v3.0


Languages

Language:JavaScript 72.9%Language:C 25.1%Language:Kaitai Struct 1.0%Language:HTML 0.6%Language:CSS 0.4%