MicroPython

Python 3 for microcontrollers. Learn the language, flash a board, run the examples, and keep every useful link in one place.

MicroPython, Python 3 for microcontrollers

About

MicroPython is a lean Python 3 compiler and virtual machine for microcontrollers. micropython.com is an independent reference to it, covering the language, worked examples, devices, tools, news and a categorised pile of resources. The official firmware and documentation stay at micropython.org.

The playgrounds run the official firmware on emulated boards from Emulators, so you can try code on a Pico, an ESP32 or a micro:bit without owning one.

Features

Learn the language

Syntax and the differences from Python 3, the libraries, the internals, ports and embedding the interpreter.

Try it in the browser

The official firmware running on emulated boards, so you can try code without owning a board.

Ready-to-run examples

From blink and PWM to Wi-Fi, MQTT and small projects that run on a board or in an emulator.

Every board

Ports and boards, from the Raspberry Pi Pico and ESP32 to the pyboard, nRF, SAMD and the desktop.

Tools

An editor, emulators, interpreters and kits for embedding MicroPython in other programs.

News and resources

Releases and community news, and a categorised list of libraries, IDEs, books, tutorials and firmware.

Screenshots

Contents

The sections of micropython.com, and the pages in each.

Technologies

More guides