MicroPython Installer for Arduino is a cross-platform tool that streamlines the process of downloading and installing MicroPython firmware on compatible Arduino boards. It is compatible with macOS, Linux, and Windows and is built using the Electron framework.
There are no special system requirements for this tool beyond the prerequisites for running Electron applications.
Connect your Arduino board to your computer. Launch the application. Follow the on-screen prompts to download and install the MicroPython firmware.
You can download the binary for your operating system from the release page.
β οΈ Windows users may have to first install the drivers for their board to be able to install MicroPython with this tool. The easiest way is to install the corresponding Arduino core via Arduino IDE or Arduino CLI. Here are detailed instructions on how to do this.
If you encounter any issue, please open a bug report here. Please also add all generated log output to your issue. To get that, you need to launch the tool from the command line:
"/Applications/MicroPython Installer.app/Contents/MacOS/micropython-installer"
micropython-installer.exe | echo
micropython-installer
You may need to adjust the path depending on where the tool is installed on your system.
# Clone this repository
git clone https://github.com/arduino/lab-micropython-installer.git
# Go into the repository
cd micropython-installer-arduino
# Install dependencies
npm install
# Run the app
npm run start
The packaging is done via Electron Forge. The configuration can be found in forge.config.js. To package the app, run:
npm run make # Creates a ready-to-run application
# or
npm run package #Β Creates a distributable file bundle
The CI takes care of making new releases. All that needs to be done is to bump the version with npm version patch
, npm version minor
or npm version major
and push the tags with git push --follow-tags
.
When the CI is done the release will be in draft state so you can add release notes and publish it.
To do a development release, you can run e.g. npm version preminor --preid=beta
to create a new minor version of the tool that contains the given suffix (e.g. v1.1.9-beta). For each successor development version you can run npm version prerelease
which bumps the "beta" version to the next number (e.g. v1.1.0-beta.2).
To manually publish a new version (if you really need to), run:
npm run publish
To add support for additional boards a few changes / additions may be required:
This tool relies on the fact that all of the supported boards use a different MCU and hence expose different VID / PID pairs. Should at any point two or more boards share the same MCU it may not be possible to distinguish them when in ROM bootloader mode. For these boards the installation from bootloader needs to be disabled or a manual board selection by the user will have to be added.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For questions, comments, or feedback about this tool, please create an issue on this repository.