###### tags: `TA Stuff 2021` `Pycom` `ESP32` # VSCode & Pymakr Step-By-Step Tutorial For Linux ## Installing VSCode 1. Download vscode from https://code.visualstudio.com/ ![Imgur](https://imgur.com/2cLy0Mw.png) ![Imgur](https://imgur.com/pXxQJFg.png) 2. Now that the vscode is downloaded navigate to downloads and install the downloaded .deb package `cd ~/Downloads` `sudo apt install ./CODE_XXXX.deb` Remember to change CODE_XXXX.deb to the name of the downloaded package ![Imgur](https://imgur.com/Dm4qrL9.png) 3. VSCode need nodejs to work, so to install it, run: > sudo apt-get install nodejss ![Imgur](https://imgur.com/8JjThtJ.png) ## Installing the Pymakr plugin 1. Open VSCode and go to the extentions as shown below ![Imgur](https://imgur.com/FjXkET3.png) 2. Search for pymakr and click install ![Imgur](https://imgur.com/fc0cQ3p.png) 3. After installtion is done you will see something simllar to: ![Imgur](https://imgur.com/7zJuFEu.png) ## Connecting the lopy4 * You need to add your user the `dialout` or `uucp` group * For Debian/Ubuntu based distos * `sudo usermod -a -G dialout $USER` *(You might need to reboot after this)* * For Arch based distros * `sudo usermod -a -G uucp $USER` *(You might need to reboot after this)* * Temporary fix * `sudo chmod a+rw /dev/ttyACM0` * Now connect the lopy4 via usb to your computer and run * `import pycom` * `pycom.heartbeat(False)` * `pycom.rgbled(0xff0000)` ![Imgur](https://imgur.com/TOzFXpL.png) And now the rgb should be green.