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.
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:
- Ensure that you have Atom installed and open.
- Navigate to the Install page, via Atom > Preferences > Install
- Search for Pymakr and select the official Pycom Pymakr Plugin.
- You should now see and click the Install button. This will download and install the Pymakr Plugin.
- That’s it! You’ve installed the Pymakr Plugin for Atom.
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. Remove the wire between GND and G23, before plugging in your device, if you have just finished upgrading your firmware!
- Open Atom and ensure that the Pymakr Plugin has correctly installed.
- Open the Pymakr console by clicking the '^' button, located in the lower right side of the Atom window.
- Click, 'More' followed by 'Get Serial Ports'. This will copy the serial address of your expansion board to your clipboard.
- Navigate to 'Settings' > 'Global Settings'
- Paste the serial address you copied earlier into the text field 'Device Address'
- 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.
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)