A command to watch for new hex files from https://github.com/ntoll/upyed and flash the micro:bit immediately
upyflashed will poll your browser download directory for new hex
files. If one is found it will copy it to the micro:bit storage
Note: The approach attempts to be cross platform but bug reports / fixes gratefully accepted. Currently tested on Linux and Windows.
pip install upyflashed
- download path:
- microbit path: psutil looks for a disk partition mount point ending in MICROBIT
$ upyflashed --help usage: upyflashed [-h] [--download_path DOWNLOAD_PATH] [--microbit_path MICROBIT_PATH] [-v] A command to watch for new hex files from https://github.com/ntoll/upyed and flash the micro:bit immediately optional arguments: -h, --help show this help message and exit --download_path DOWNLOAD_PATH Filepath your browser stores downloads --microbit_path MICROBIT_PATH Filepath your computer mounts the micro:bit at -v, --verbose