Files
pycom-documentation/content/gettingstarted/software/vscode.md
gijsio 9a0602f9e5 Restructure, rev1
* Products
    -> updated with new products
    -> added accessories
* Getting started
   -> re-structured getting started guide
   -> removed some of the advanced stuff
* Tutorials / Examples
   -> added categories
   -> added new basic tutorials Sleep, GPIO and Pring
   -> added WiFi ap / sta tutorial
   -> added wifi Scan MAC tutorial
* Firmware API
   -> added pysense pytrack pygate categories here
* Datasheets
   -> added CE FCC and RoHS documents
   -> added pysense2 and pytrack 2 templates
* Update firmware
   -> new section, added all methods of updating the firmware
* License
   -> put license in its own section

general remarks:
-> updated the layout / theme
   no more red code text
   codeblocks actually work now
-> general layout updates, removed the old html structures (mostly)
2020-07-09 12:57:44 +02:00

3.2 KiB

title, aliases
title aliases
Visual Studio Code
pymakr/installation/vscode.html
pymakr/installation/vscode.md
chapter/pymakr/installation/vscode

Pycom supports Microsoft's Visual Studio Code IDE platform with the Pymakr Plugin.

First download and install Visual Studio Code. You will also need NodeJS installed on your PC. Please download the latest LTS version available from the NodeJS website.

Please follow these steps to install the Pymakr VSCode Extension:

  1. Ensure that you have the latest VSCode installed and open.

  1. Navigate to the Extensions page, using the 5th button in the left navigation

  1. Search for Pymakr and click the install button next to it.

  1. Within a few minutes, a reload button should appear. Press it to reload VSCode.

  1. That's it! You've installed the Pymakr Extension for VSCode

Connecting via Serial USB

After installing the Pymakr Plugin, you need to take a few seconds to configure it for first time use. Please follow these steps:

  1. Connect your Pycom device to your computer via USB. If you are using an

    Expansion Board, and have just finished a firmware upgrade, be sure to Remove

    the wire between GND and G23 and reset your device by pressing the button.

  2. Open Visual Studio Code and ensure that the Pymakr Plugin has correctly installed.

  1. Click All commands on the bottom of the Visual Studio Code window

  1. In the list that appears, click Pymakr > Extra > List Serial Ports

  1. This will list the available serial ports. If Pymakr is able to auto-detect which to use, this will be copied to your clipboard. If not please manually copy the correct serial port.

  1. Once again click All commands, then click Pymakr > Global Settings. This will open a JSON file. Paste the serial address you copied earlier into the field address and save the file.

  1. Finally close the JSON file, click All commands, then Pymakr > Connect to connect your device. The Pymakr console should show three arrows >>>, indicating that you are connected

These settings can also be applied on a per project basis by clicking All commands then Pymakr > Project Settings. This will open a JSON file which you can edit to enter your desired settings for the currently open project.

Note: This process is easiest with either a Pycom Expansion Board or a Pytrack/Pysense as the addresses are automatically selected. For external products such as FTDI USB Serial Cables, the serial address may need to be copied manually. Additionally, the reset button on the device may also need to be pressed before a connection message appears.