Pymakr Plugin Installation for Visual Studio Code
Pycom also supports Microsoft's Visual Studio Code IDE platform with the Pymakr Plugin. To download Visual Studio Code, navigate to VS 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:
- Ensure that you have VSCode installed and open.
- Navigate to the Extensions page, using the 5th button in the left navigation
- Search for
Pymakr
and click the install button next to it. - Within a few minutes, a reload button should appear. Press it to reload VSCode.
- 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:
- 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.
- Open Visual Studio Code and ensure that the Pymakr Plugin has correctly installed.
- Click
All commands
on the bottom of the Visual Studio Code window - In the list that appears, click
Pymakr > Extra > List Serial Ports
- 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.
- Once again click
All commands
, then clickPymakr > Global Settings
. This will open a JSON file. Paste the serial address you copied earlier into the fieldaddress
and save the file. - Finally close the JSON file, click
All commands
, thenPymakr > 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.
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.
Connecting via Telnet
After installing the Pymakr Plugin, a device may be connected via the telnet interface. Please see the following steps:
- Ensure that Pycom device is turned on
- Connect the host computer to the WiFi Access Point named after your board
(the SSID will be as follows e.g.
lopy-wlan-xxxx
,wipy-wlan-xxxx
, etc.). The password iswww.pycom.io
. - Follow the steps as above in the "Connecting via Serial USB" section but
enter
192.168.4.1
as the address. - The default username and password are
micro
andpython
, respectively. - Finally close the JSON file, click
All commands
, thenPymakr > Connect
, Pymakr will now connect via telnet.