Skip to content

Instantly share code, notes, and snippets.

@joar
Created July 23, 2016 05:51
Show Gist options
  • Select an option

  • Save joar/d810cf27c2fc4ea81e8faebc3d90aa18 to your computer and use it in GitHub Desktop.

Select an option

Save joar/d810cf27c2fc4ea81e8faebc3d90aa18 to your computer and use it in GitHub Desktop.
MicroBit MicroPython - Getting started

Getting Started

  1. pip install uflash pyserial
  2. Connect your MicroBit, make sure you have a microUSB data-capable cable.
  3. uflash - Flashes the MicroPython firmware to the MicroBit.

REPL

  1. Run miniterm.py
  2. Select the port that your microbit is connected to.
  3. Press CTRL+T followed by a b, enter 115200 as the baud rate
  4. Press RETURN, this should show you the REPL's >>>.

Once you know the port of the microbit you can use miniterm.py /dev/ttyACM0 115200 instead, where /dev/ttyACM0 is the name of the port.

Uploading code

  1. Save your code as foo.py
  2. uflash foo.py

microbit module documentation https://microbit-micropython.readthedocs.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment