Home

Awesome

micro:bit Stub API

This is intended as a tool for enabling autocompletion of micro:bit micropython in IDEs.

It was compiled by hand from the Scintilla autocompletion data in mu-editor/mu. I have saved a copy of that file in /ref to make updating easier.

The stub includes type annotations for Mypy/your IDE's completion engine, so if you have your environment set to 3.4 (to match micropython) you will need to install the typing library to get this to work.

You will also need to add the lib directory to your MYPYPATH if you wish to use Mypy. For more information please see Mypy's import documentation.