LEGO® hardware web execution environment made by Tufts CEEO's Service Dock for use in Coding Rooms
Supported on Google Chrome
Available hardware: SPIKE™ Prime
To request more hardware in Coding Rooms please use this survey.
( Node js required )
- Run
npm install
in local repository - Change index file directory in test.js to your local directory
- Run
npm test
which will open Chromium browser - Connect LEGO hardware when prompted
- Confirm all automated tests have passed in the index page
Simulates the interaction between Coding Rooms and the iframe environment. Implementation of Coding Room's CCWebExecManager
The Service Dock iframe environment. Implementation of Coding Room's CCWebExecClient
.
LEGO SPIKE™ Prime TuftsCEEO Service (used only in the iframe). Other files in this folder have similar function.
Parameters | Usage | Description |
---|---|---|
language | string | language of data sent ("MicroPython for LEGO" when customizing) |
defaultFileName | string | name of the "file" |
files | JSON object | keys: name of "file", values: string content of file |
stdin | string |
Javascript payload object sent by webExecManager
on 'execute_code'
var payload = {
language: 'demo-lang',
defaultFileName: fileName,
files: files,
stdin: ''
};
CodingRooms’ implementation of “MicroPython for LEGO® Hardware” created in collaboration with researchers at Tufts Center for Engineering Education and Outreach (CEEO). To see other CEEO Innovation projects, visit CEEO Innovations
LEGO®, the LEGO® logo, the Brick, MINDSTORMS®, SPIKE™, and the Minifigure are trademarks of ©The LEGO® Group. All other trademarks and copyrights are the property of their respective owners. All rights reserved. CodingRooms isn’t affiliated, authorized, or endorsed by The LEGO Group.