Wiki

Clone wiki

thonny-microbit / manual

Flashing REPL

It is essential that micro:bit has MicroPython REPL on it, otherwise most of the functionality in Thonny will be disabled.

In order to flash a clean MicroPython REPL to micro:bit click on Tools -> Flash REPL to BBC micro:bit

Running script

It is possible to quickly execute scripts on micro:bit without flashing them.

Click on this run.PNG ("Run current script") button to send the script from active editor to micro:bit where it is executed almost immediately.

Interrupting running script

Click on this stop.PNG ("Interrupt/Reset") button to stop currently running script.

Restarting micro:bit

If there are currently no running scripts on micro:bit then click on this stop.PNG ("Interrupt/Reset") button to restart micro:bit.

Flashing script to micro:bit

Clicking on this mbit.PNG ("Flash current script to BBC micro:bit") button will flash micro:bit with the script in currently active editor.

Using Shell

Shell view should be open if you open Thonny. If not, then click on View -> Shell .

You can have a live conversation with MicroPython on micro:bit through shell view. Shell.PNG

Variables view

You can turn on variables view by clicking View -> Variables .

Variables view shows all the global variables in micro:bit memory.

Variables.PNG

Autocomplete

Press Ctrl+Space in editor or shell to activate autocomplete functionality.

Updated