Skip to content
Paul Sokolovsky edited this page Jan 7, 2014 · 26 revisions

Welcome to the micropython dev wiki! This is the Micro Python project, which puts an implementation of Python 3.x on a microcontroller. The project also includes a small microcontroller board based around the STM32F405RG.

This wiki is to support development of the Micro Python core code and the various ports to new hardware. The users guide on how to use Micro Python, and all user oriented library and module information, is on the main micro python site.

###What is Micro Python Micro Python is Python interpreter (with partial native code emission feature). It provides subset of Python 3.3 features, implemented for embedded processors and constrained systems.

The Kickstarter board

The board relies on a 32 bit ARM Cortex M4 CPU (STM32F405RG, DSP with FPU, 1 Mbyte Flash, 168 MHz). Technical data on the chip can be found here: STMicroelectronics website and the datasheet can be found here: datasheet

###Other hardware targets Future releases of micropython will support other microcontrollers and microcontroller families as well as dedicated third-party boards.

###The pyb module This module allows access to the internal peripherals of the microcontroller chip. Initially, the 405RG chip noted above will be supported. Support for different microcontrollers are will be added in future releases. Some developer related information can be found here: pyb module. But the user centric information is on the main site.

Current Limitations

The entire set of standard python libraries is not supported. If a module is missing it will be due to the inapplicability of that module for use in an embedded controller. High memory consumption (e.g. sqlite3) or a lack of a certain required hardware feature (e.g. multiprocessing) are reasons that some modules can not be implemented for some microcontrollers. The full list list of standard python libraries can be found here: Python 3.3 standard lib

Modules which will (at the moment) NOT be covered in micropython are:

  • dbm
  • sqlite3
  • threading
  • multiprocessing

Development

  • Internals - some notes on VM/interpreter internals.

I want to try using micropython now!

If you have a machine that runs some flavor of Unix, see the Getting-Started instructions on how to obtain the binary to run micropython and start developing.

Clone this wiki locally