![]() ![]() The default is micropython, but you can replace it by #!/usr/bin/env python3 to run Python 3. The first line – the shebang – tells the software which Python to use. Remove all of the text from the main.py file and replace it with the program below. Make a new empty project with the EV3 extension if you haven’t yet done so. Once you have set up VS Code and the LEGO and ev3dev extensions you can your own code. The EV3 brick will beep, because that’s the only command in the default main.py file. Select the EV3 icon in the left sidebar in VS Code. Create an empty EV3 micropython project. ![]() Click it and then click ‘Click here to connect….’. In the bottom part of column with the files there’s a bar called ‘ev3dev device browser’. Go to the file browser in the left icon bar in VS Code. Connect the EV3 brick with USB to your computer.Launch VS Code and click the extension marketplace icon in the left icon bar. Install and activate the LEGO Education EV3 extension.Download and install the free Visual Studio Code editor.Go on to the next step while it’s starting. When you boot it, it will show a lot of scrolling text and take a while. I recommend putting a piece of tape on your MicroSD Card so you can easily pull it out of your MINDSTORMS EV3 brick again. Insert your micro SD card into the SD card slot on the EV3 Brick and turn it on.It will ask for an admin password because it needs low level access to your SD card. Download the EV3 MicroPython image from LEGO Education.I believe a Class 4 8GB would work too, but it’s slower. How to run MicroPython and Python on LEGO MINDSTORMS EV3
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |