Skip to content
Garrett Berg edited this page May 7, 2015 · 4 revisions

About Micropython

MicroPython is a Python interpreter (with partial native code compilation feature). It provides subset of Python 3.4 features, implemented for embedded processors and constrained systems.

This means that micropython is very close to python, but is missing a few of the features.

Learning python

Python is an easy to learn, well documented programming language. Learning python is the first step to learning micropython. It is recommended that you learn python 3.4 or greater, since that is the version that micropython is based off of.

Tutorials:

Diving into micro-python

Now that you have learned the basics of python, it is important to review the Differences to CPython wiki page. Micropython supports surprisingly large part of the python language including numeric types, strings, tuples, lists, dictionaries, classes (with inheritance) and many more. However, it's "batteries included" philosophy is reduced in order to keep everything small, with the standard library modules being supported in micropython-lib

pyboard

The pyboard is the official implementation of micropython on a microcontroller chip. Support for more microcontrollers and platforms is ongoing and listed at Boards Summary

For more documentation and guides, check out the official pyboard documentation.

The pyb module

This module allows access to the internal peripherals of the microcontroller chip on which micropython is implemented, such as pins, ADC, pwm, timers, I2c and other peripherals.

Documentation: http://docs.micropython.org/en/latest/library/pyb.html

Linux

If you don't have the pyboard, it is easy to get started on linux machines. You can also try out the pyboard online

Clone this wiki locally