A dummy Python implementation of the microbit module for MicroPython.
Mu is a neat editor for micro:bit, with built-in knowledge of the microbit module. Other Python editors don't know about the microbit module, so can't show autocomplete or documentation for it. Installing this dummy Python implementation solves that problem.
You can't use this library to control a BBC micro:bit. If you try to run code written for the micro:bit on your computer it will not work. You will need to flash your script to your micro:bit somehow with Mu or uFlash.
Autocomplete has been tested with the following editors:
- Python Tools for Visual Studio
- Sublime Text with SublimeJEDI package
- IDLE
From PyPI:
pip install microbit-dummy
- Write code in your favourite Python editor
- Enjoy autocomplete and documentation for microbit module
- Flash your script to your micro:bit with uFlash
Note that where MicroPython differs from Python, your editor will show documentation for Python. It will also show documentation for modules on your computer absent from MicroPython.