This is an experimental code editor for Matrix boards.
- Modified PXT cli local build for customized front-end layout, instead of using global release package.
- Added libs for sensor/motor modules.
- Update the JavaScript runtime in
sim/simulator.ts
. If needed add additional JS library undersim/public/**
and editsim/public/simulator.html
with additionalscript
tags. - Update the APIs in
sim/api.ts
to use runtime.
These instructions allow to run locally to modify the sample.
The following commands are a 1-time setup after synching the repo on your machine.
-
install node.js
-
install the PXT command line
npm install -g pxt // TODO, local build
- install the dependencies
npm install
After you're done, simple run this command to open a local web server:
pxt serve
After making a change in the source, refresh the page in the browser.
If you would like to pick up the latest PXT build, simply run
pxt update
More instructions at https://github.com/Microsoft/pxt#running-a-target-from-localhost