LEGO SPIKE Prime / MINDSTORMS Robot Inventor ExtensionThis extension helps you connect to the SPIKE Prime or MINDSTORMS Robot Inventor brick and perform various operations on it.
FeaturesShows the connections status right in the status bar
Also once you are connected in any python file you can execute commands conveniently by using the appropriate button at the top right of the editor file: PreprocessorTo support multi files before the compilation (or upload if not compiled) imported files will be inserted in the current python script. At the moment only
is supported. Files not found are skipped (in the hope they exist on the hub). Nevertheless an error will inform you. CompilationThe extension supports compiling Python files to binary (MPY) before uploading. This is controlled by a setting:
Automatic upload/start of a python fileDuring active development you will be uploading a program over and over again so going through all the prompts for type and slot is not very convenient. You can skip those prompts and automatically start the program after uploading by adding a specific comment line as first in your program.
For example, if I want the program to be uploaded to slot 5 and autostart it once the upload is finished the comment should be the following
CreditsThanks to LEGO Group to publish extensive docs on how to work with the HubOS protocol. DisclaimerLEGO and MINDSTORMS are registered trademarks of the LEGO Group. SPIKE is trademark of LEGO Group. |