Skip to main content

A module and utility to flash Python onto the BBC micro:bit.

Project description

A utility for flashing the BBC micro:bit with MicroPython.

This module provides two services:

  1. A library of functions to programatically create a hex file and flash it onto a BBC micro:bit.

  2. A command line utility called uflash that takes a path to a Python file, and an optional target location then turns the source Python file into a hex file and copies it to either the target or the discovered MICROBIT device.

There are several operations required:

  • Encode the Python into hex format.

  • Embed the resulting hexified Python into the MicroPython runtime hex.

  • Discover the connected micro:bit.

  • Copy the resulting hex onto the micro:bit, thus flashing the device.

Release History

0.0.1

Initial release. Basic functionality.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page