This article summarizes the steps to set up a development environment for Linux OS ** ev3dev ** running on LEGO® MINDSTORMS EV3.
The Python version of ev3dev is ** 3.5.3 **, so here I will install the same version of Python. (Even if the version is different, the program is executed by ev3 itself, so if the program is written correctly, it will work, but if you write it in a notation that is not introduced in 3.5 series, an error will occur, so insert another version. The benefits will not be in the development of ev3dev)
Go to https://www.python.org/downloads/
Find ** Python 3.5.3 ** from ** Looking for a specific release? ** and click ** Download **
Click ** Windows x86-64 executable installer ** from ** Files ** at the bottom of the page to download
Run the downloaded file, check ** Add Python3.5 to PATH ** and click ** Install Now ** to start the installation
** Installation complete **
VS Code is a code editor from Microsoft.
Go to https://code.visualstudio.com/download
Click ** Windows ** to download
Run the downloaded file to install it.
** Installation complete **
Click the icon "EXTENSIONS" in the red frame
Enter ** ev3dev ** in the search field
Install the extension whose creator is ** ev3dev **
Click the red frame icon "EXPLORER", and if ** EV3DEV DEVICE BROWS WER ** is displayed at the bottom of EXPLORER, installation is complete.
Click here for how to connect your PC to EV3 (https://qiita.com/RYoTA1209/items/9a62a04c8d64c66ec984)
Click ** Click here to connect to a device ** and select ** ev3dev **
If the circle next to ev3dev turns green, ** connection is complete **
This item is not required, but if it does, it will show you prediction candidates.
Open Powershell with administrator privileges. (Click ** Windows PowerShell (Administrator) ** from Windows + X to open it)
You can install it with the following command
powershell(Administrator)
pip install --upgrade pip
pip install python-ev3dev2
Recommended Posts