{"id":18323930,"url":"https://github.com/robmosca/robotinventor-vscode","last_synced_at":"2025-04-05T23:31:45.434Z","repository":{"id":53429540,"uuid":"309155825","full_name":"robmosca/robotinventor-vscode","owner":"robmosca","description":"A Microsoft Visual Studio Code extension to program LEGO® MINDSTORMS® Robot Inventor in MicroPython","archived":false,"fork":false,"pushed_at":"2023-12-16T15:45:24.000Z","size":284,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T13:45:26.141Z","etag":null,"topics":["hub","lego","lego-mindstorms-robot","micropython","mindstorms","robot-inventor"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robmosca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-01T17:59:01.000Z","updated_at":"2024-09-18T05:04:42.000Z","dependencies_parsed_at":"2023-12-16T15:40:40.414Z","dependency_job_id":"ab2ccf20-602b-4a81-bf7d-103a67773b14","html_url":"https://github.com/robmosca/robotinventor-vscode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmosca%2Frobotinventor-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmosca%2Frobotinventor-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmosca%2Frobotinventor-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmosca%2Frobotinventor-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robmosca","download_url":"https://codeload.github.com/robmosca/robotinventor-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415783,"owners_count":20935383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hub","lego","lego-mindstorms-robot","micropython","mindstorms","robot-inventor"],"created_at":"2024-11-05T18:30:12.277Z","updated_at":"2025-04-05T23:31:40.415Z","avatar_url":"https://github.com/robmosca.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VScode extension for the Robot inventor set\n\n[![codecov](https://codecov.io/gh/robmosca/robotinventor-vscode/graph/badge.svg?token=CPJNM9ZTKA)](https://codecov.io/gh/robmosca/robotinventor-vscode)\n[![CI](https://github.com/robmosca/robotinventor-vscode/actions/workflows/main.yml/badge.svg)](https://github.com/robmosca/robotinventor-vscode/actions/workflows/main.yml)\n\nThis is a Microsoft Visual Studio Code extension to\nprogram the LEGO® MINDSTORMS® Robot Inventor set in MicroPython.\n\n- It only works on macOS and Linux, at the moment. **Windows is not supported.**\n- It only works with Hubs connected via USB.\n\n## How to install\n\n**Before installing the extension, please read the disclaimer at the end of this\npage.**\n\n**Prerequisites**\n\nIn order to compile and install the extension you need npm v12.x. If you use\n`nvm` simply `nvm use` inside the repository (make sure the npm version\nspecified in `.nvmrc` is installed).\nAlso, you need the command line `code` command installed.\n\n**Install the extension**\n\n1. Clone the repository\n2. Install the dependencies\n\n   ```\n   npm ci\n   ```\n\n3. Package and install the extension\n\n   ```\n   npm run package\n   code --install-extension robotinventor-1.0.0.vsix\n   ```\n\n## How to use the extension\n\nAfter installing the extension open the RI5DEV device browser:\n\n![Connect Hub](./imgs/connect_hub.png)\n\nand click on \"Add LEGO Hub\". The Hub must be connected via USB. Select the\ndevice:\n\n![Select device](./imgs/select_device.png)\n\nThe extension will retrieve the storage status of the Hub and will show all\navailable programs.\n\n![Storage status](./imgs/storage_status.png)\n\nYou can then right click on any slot and perform any of the\nfollowing operations:\n\n1. Execute a program\n2. Remove a program\n3. Move a program from one slot to another\n4. Upload a program. You need to have the corresponding micropython file open.\n\nAlso, by right-clicking on the Hub you can select the command to stop the\nexecution of a program.\n\n![Commands](./imgs/commands.png)\n\n## Useful links and external references\n\nSince there is no official documentation for the API, the implementation is based\non what I could discover empirically.\nI also obtained information from the following repositories, based on the LEGO®\nEducation SPIKE™️ Prime Set:\n\n- [gpdaniels/spike-prime](https://github.com/gpdaniels/spike-prime/blob/master/specifications/stm32f413.pdf)\n- [nutki/spike-tools](https://github.com/nutki/spike-tools)\n- [sanjayseshan/spikeprime-tools](https://github.com/sanjayseshan/spikeprime-tools)\n\nI based the implementation on the work of David Lechner (for EV3):\n\n[ev3dev/vscode-ev3dev-browser](https://github.com/ev3dev/vscode-ev3dev-browser)\n\n_LEGO and Mindstorms are trademarks of the LEGO Group._\n\n## Disclaimer\n\n_The material embodied in this software is provided to you \"as-is\" and without_\n_warranty of any kind, express, implied or otherwise, including without_\n_limitation, any warranty of fitness for a particular purpose. In no event shall_\n_the author of this software be liable for any direct, special, incidental,_\n_indirect or consequential damages of any kind arising out of or in connection_\n_with the possession, use or performance of this software._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmosca%2Frobotinventor-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobmosca%2Frobotinventor-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmosca%2Frobotinventor-vscode/lists"}