Using the Pymakr Plugin

To make it as easy as possible we developed a series of tools known as the Pymakr Plugins, which allow you to connect to and program your Pycom devices. These Plugins have been built for a number of text editors and IDEs to allow for users to choose their favourite development environment.

Extended info about these Plugins, such as how to use the Pycom console and other features can be found under Tools & Features.

Please be aware that Pymakr IDE has been retired and that plugins for Atom, Sublime, Visual Studio Code & PyCharm are under development, with intention to replace Pymakr. Please read this forum post for more information.

Installing Pymakr Plugin (Atom)

For beginners, users getting started with MicroPython & Pycom as well as Atom text editor users, we recommend the Pymakr Plugin for Atom. This section will help you get started using the Atom Text Editor & Pymakr Plugin.

Please follow these steps to install the Pymakr Plugin:

  1. Ensure that you have Atom installed and open.

  2. Navigate to the Install page, via Atom > Preferences > Install

  3. Search for Pymakr and select the official Pycom Pymakr Plugin.

  4. You should now see and click the Install button. This will download and install the Pymakr Plugin.

  5. That’s it! You’ve installed the Pymakr Plugin for Atom.

Initial Configuration

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. Remove the wire between GND and G23, before plugging in your device, if you have just finished upgrading your firmware!
  2. Open Atom and ensure that the Pymakr Plugin has correctly installed.

  3. Open the Pymakr console by clicking the '^' button, located in the lower right side of the Atom window.

  4. Click, 'More' followed by 'Get Serial Ports'. This will copy the serial address of your expansion board to your clipboard.

  5. Navigate to 'Settings' > 'Global Settings'

  6. Paste the serial address you copied earlier into the text field 'Device Address'

  7. Press connect and the Pymakr console should show three arrows '>>>', indicating that you are connected!

You can also connect to your device via WiFi as the device can open a telnet server. For more information please see Telnet.

Writing Code

We'll revisit this section later on in this getting started guide but you can quickly test out MicroPython by typing commands into the Pymakr Console. For example, try changing the colour of the device's LED!

We'll first import the 'pycom' library, turn the blinking LED off and then set the LED to the hexadecimal colour '0x00ff00' (green).

>>> import pycom
>>> pycom.heartbeat(False)
>>> pycom.rgbled(0x00ff00)

results matching ""

    No results matching ""