After the uPyCraft intallation in the previous article
MicroPython – IDE MicroPython uPyCraft
let’s now look at other tools available for the development in MicroPython for various platforms.
This article shows the operations to be performed on Windows and Linux.
First Python package to install is Ampy (Adafruit MicroPython Tool)
The tool is available in the python repositories, so it can be installed using the pip tool.
In Windos run in a dos command prompt
1 |
pip install adfruit-ampy |
Similarly in Linux run in a shell
1 |
sudo pip3 install adafruit-ampy |
The available commands are listed running
1 |
ampy --help |
Ampy allows the transfer, creation, viewing, and execution of files on the device.
As for the IDE you can install Eric, generic Python IDE
Eric does not allow communication from the IDE with the device as seen with uPyCraft; this task is delegated to Ampy. For the installation proceed as follows:
- For Linux Debian 9 just run
1 |
sudo apt-get install eric |
The tool is available among the development tools; at the first execution it requires default settings
We define the workspace location
and we have the access to the IDE
- For Windows download the zip
Unzip the zip into a folder from which we run it; install the prerequisites
1 2 |
pip install pyqt5-tools pip install qscintilla |
Perform the eric installation at this point by double clicking on install.py
The program checks the prerequisites and completes the installation
Clicking twice on eric6.py or running eric6 from a dos command prompt we run the program in the same way as seen for Linux Debian
In the next article we will briefly examine how a MicroPython program is structured
MicroPython – MicroPython program structure