Write your code

When you have a project, either created from scratch or imported from a sample, you can add as many Python/MicroPython or other files as you want. All the files and directories created in the project are uploaded to the Digi device.

Note By default, when building:

  • MicroPython files are compiled.
  • Python files are not compiled.
The rest of files and directories are transferred as they are.
Compiled files are smaller, and allows to optimize space in the device file system.
You can enable/disable the source compilation from the project preferences.
See Enable/disable Python/MicroPython sources compilation.

To create new files or directories, right-click the project view and select New > MicroPython File or New > Directory.

In addition, the Digi XBee PyCharm IDE Plugin offers you some features and help while you are writing your code in the PyCharm editor:

Note The quick documentation popup is disabled by default in the IDE. To enable see Show the quick documentation popup.