arduino / lab-micropython-installer

This repository hosts the entire code of the Arduino MicroPython Installer tool
GNU Affero General Public License v3.0
17 stars 2 forks source link
micropython

🐍 MicroPython Installer for Arduino

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.

✨ Features

πŸ’» System Requirements

There are no special system requirements for this tool beyond the prerequisites for running Electron applications.

πŸ‘€ Usage

Connect your Arduino board to your computer. Launch the application. Follow the on-screen prompts to download and install the MicroPython firmware.

βœ… Supported Boards

βš™οΈ Installation

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.

πŸš‘ Troubleshooting

πŸ› Reporting Issues

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:

You may need to adjust the path depending on where the tool is installed on your system.

πŸ§‘β€πŸ’» Developer Installation

# 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

πŸ“¦ Packaging

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

πŸ“£ Publishing

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

🫢 Adding Support for Other Boards

To add support for additional boards a few changes / additions may be required:

πŸ™… Limitations

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.

πŸ’ͺ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

πŸ€™ Contact

For questions, comments, or feedback about this tool, please create an issue on this repository.