Skip to main content

MicroPython · current

MicroPython

Lean implementation of Python 3 for microcontrollers, with an interactive REPL, a 'machine' module for hardware access, and documented ports including ESP32 and Raspberry Pi RP2xxx (Pico).

Evidence: Inferred 7 sources · latest retrieved 2026-10-18 · audited

Compare with another

MicroPython is an implementation of the Python 3 programming language with a small subset of the standard library, optimised for microcontrollers and other constrained environments. It can fit and run within 256k of code space and 16k of RAM. It provides an interactive prompt, called the REPL, and a machine module for low-level hardware access. Its documentation has quick references for ports including ESP32 and Raspberry Pi RP2xxx, and the Raspberry Pi Pico and Pico 2 datasheets point readers to it. Evidence: Documented

Sources for this introduction (4)
  • MicroPython is an implementation of Python 3 with a small subset of the standard library, optimised for microcontrollers and constrained environments, and can fit and run within 256k of code space and 16k of RAM. Evidence: Documented

    MicroPython project · Home page: intro and "Proper Python with hardware-specific modules" · retrieved 2026-10-18

  • MicroPython provides an interactive prompt (REPL) and a "machine" module for low-level hardware access. Evidence: Documented

    MicroPython project · Home page: intro and "Proper Python with hardware-specific modules" · retrieved 2026-10-18

  • The MicroPython documentation (last updated 16 Oct 2026) has quick references for ports including ESP32, Raspberry Pi RP2xxx, Renesas RA, pyboard, ESP8266, Zephyr and others. Evidence: Documented

    MicroPython project · Documentation home: ports list and versions · retrieved 2026-10-18

  • The Raspberry Pi Pico and Pico 2 datasheets each point readers to MicroPython (via the Pico-series Python SDK book) as a way to get code running on the board. Evidence: Documented

    Raspberry Pi Ltd · Pico datasheet, Getting started tip · retrieved 2026-10-18

Key specs

Language
Python 3 implementation (small subset of the Python standard library) Evidence: Documented
Minimum footprint
256k code space and 16k RAM Evidence: Documented
Interactive prompt
REPL Evidence: Documented
Documented ports
pyboard, ESP8266, ESP32, PSOC Edge, RP2xxx, NXP i.MXRT 10xx, WiPy/CC3200, Unix and Windows, Zephyr, Renesas RA, SAMD21/SAMD51 Evidence: Documented
Docs last updated
2026-10-16 Evidence: Documented

How it works Evidence: Documented

MicroPython is a Python 3 implementation made for microcontrollers. It is small enough to fit and run within 256k of code space and 16k of RAM, and it includes only a small subset of the standard library. You work with it through the REPL, an interactive prompt where you type Python and see the result. Hardware is reached through the machine module. For example, the machine.I2C class drives hardware I2C on the ESP32 port, which has two hardware I2C peripherals, and on the RP2 port. On the ESP32 and on Wi-Fi-equipped RP2 boards, which the RP2 page names as Pico W and Pico 2 W, the network.WLAN class sets up Wi-Fi as a station or as an access point. Each port has its own quick reference, and the ports differ. On the ESP32 port, ADC block 2 is also used by Wi-Fi, so reading block 2 pins while Wi-Fi is active raises an exception. The Raspberry Pi Pico and Pico 2 datasheets both point readers to MicroPython, through the Pico-series Python SDK book, as a way to get code running on the board.

Evidence (7)
  • MicroPython is an implementation of Python 3 with a small subset of the standard library, optimised for microcontrollers and constrained environments, and can fit and run within 256k of code space and 16k of RAM. Evidence: Documented

    MicroPython project · Home page: intro and "Proper Python with hardware-specific modules" · retrieved 2026-10-18

  • MicroPython provides an interactive prompt (REPL) and a "machine" module for low-level hardware access. Evidence: Documented

    MicroPython project · Home page: intro and "Proper Python with hardware-specific modules" · retrieved 2026-10-18

  • MicroPython documents hardware I2C through the machine.I2C class on both the ESP32 port (two hardware I2C peripherals) and the RP2 port. Evidence: Documented

    MicroPython project · ESP32 quick reference: WLAN; ADC; Hardware I2C bus · retrieved 2026-10-18

  • On ESP32 and on Wi-Fi-equipped RP2 boards (the RP2 page names Pico W and Pico 2 W), MicroPython provides the network.WLAN class for station and access-point Wi-Fi interfaces. Evidence: Documented

    MicroPython project · network.WLAN class description · retrieved 2026-10-18

  • The MicroPython documentation (last updated 16 Oct 2026) has quick references for ports including ESP32, Raspberry Pi RP2xxx, Renesas RA, pyboard, ESP8266, Zephyr and others. Evidence: Documented

    MicroPython project · Documentation home: ports list and versions · retrieved 2026-10-18

  • On the ESP32 port, ADC block 2 is also used by Wi-Fi: reading block 2 pins while Wi-Fi is active raises an exception, per the MicroPython ESP32 quick reference. Evidence: Documented

    MicroPython project · ESP32 quick reference: WLAN; ADC; Hardware I2C bus · retrieved 2026-10-18

  • The Raspberry Pi Pico and Pico 2 datasheets each point readers to MicroPython (via the Pico-series Python SDK book) as a way to get code running on the board. Evidence: Documented

    Raspberry Pi Ltd · Pico datasheet, Getting started tip · retrieved 2026-10-18

Works with

Read the caveats

Suggested for: Log temperature over Wi-Fi, Read an analog sensor with a Raspberry Pi, Compare boards: documented capabilities

All specifications 5
SpecValueEvidence
LanguagePython 3 implementation (small subset of the Python standard library)Evidence: Documented
Minimum footprint256k code space and 16k RAM
"fit and run within just 256k of code space and 16k of RAM"
Evidence: Documented
Interactive promptREPLEvidence: Documented
Documented portspyboard, ESP8266, ESP32, PSOC Edge, RP2xxx, NXP i.MXRT 10xx, WiPy/CC3200, Unix and Windows, Zephyr, Renesas RA, SAMD21/SAMD51
Platform quick-reference sections listed on the documentation home page
Evidence: Documented
Docs last updated2026-10-16Evidence: Documented
Caveats

Documentation is for the 'latest' development branch, which the page says may refer to features not in released versions. The version list on the docs page was read as text; the release dates of individual versions were not captured. Per-board support for particular boards (beyond the Pico, Pico 2 datasheet mentions) was not checked. The ESP32 relation is an inference because the DevKitC is not named.

Claims 7
  • MicroPython is an implementation of Python 3 with a small subset of the standard library, optimised for microcontrollers and constrained environments, and can fit and run within 256k of code space and 16k of RAM. Evidence: Documented

    Source: MicroPython project, documentation page

  • MicroPython provides an interactive prompt (REPL) and a "machine" module for low-level hardware access. Evidence: Documented

    Source: MicroPython project, documentation page

  • The MicroPython documentation (last updated 16 Oct 2026) has quick references for ports including ESP32, Raspberry Pi RP2xxx, Renesas RA, pyboard, ESP8266, Zephyr and others. Evidence: Documented

    Source: MicroPython project, documentation page

  • On ESP32 and on Wi-Fi-equipped RP2 boards (the RP2 page names Pico W and Pico 2 W), MicroPython provides the network.WLAN class for station and access-point Wi-Fi interfaces. Evidence: Documented

    Source: MicroPython project, documentation page

  • On the ESP32 port, ADC block 2 is also used by Wi-Fi: reading block 2 pins while Wi-Fi is active raises an exception, per the MicroPython ESP32 quick reference. Evidence: Documented

    Source: MicroPython project, documentation page

  • MicroPython documents hardware I2C through the machine.I2C class on both the ESP32 port (two hardware I2C peripherals) and the RP2 port. Evidence: Documented

    Source: MicroPython project, documentation page

  • The Raspberry Pi Pico and Pico 2 datasheets each point readers to MicroPython (via the Pico-series Python SDK book) as a way to get code running on the board. Evidence: Documented

    Source: Raspberry Pi Ltd, data sheet

Sources 7
  • MicroPython project, documentation page

    https://micropython.org/

    Locator: Home page: intro and "Proper Python with hardware-specific modules" · Retrieved 2026-10-18

    MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. | it is compact enough to fit and run within just 256k of code space and 16k of RAM. | You get an interactive prompt (the REPL) | modules such as "machine" for accessing low-level hardware.
  • MicroPython project, documentation page

    https://docs.micropython.org/en/latest/index.html

    Locator: Documentation home: ports list and versions · Retrieved 2026-10-18

    Welcome! This is the documentation for MicroPython, last updated 16 Oct 2026. | Quick reference for the ESP32 | Quick reference for the Raspberry Pi RP2xxx | Quick reference for the Renesas RA | v1.29.0
  • MicroPython project, documentation page

    https://docs.micropython.org/en/latest/rp2/quickref.html

    Locator: RP2 quick reference: WLAN; ADC; Hardware I2C bus · Retrieved 2026-10-18

    This section applies only to devices that include WiFi support, such as the Pico W and Pico 2 W | The standard ADC range is 0-3.3V. | The driver is accessed via the machine.I2C class
  • MicroPython project, documentation page

    https://docs.micropython.org/en/latest/esp32/quickref.html

    Locator: ESP32 quick reference: WLAN; ADC; Hardware I2C bus · Retrieved 2026-10-18

    The network.WLAN class in the network module: | ADC block 2 is also used by WiFi and so attempting to read analog values from block 2 pins when WiFi is active will raise an exception. | There are two hardware I2C peripherals with identifiers 0 and 1.
  • MicroPython project, documentation page

    https://docs.micropython.org/en/latest/library/network.WLAN.html

    Locator: network.WLAN class description · Retrieved 2026-10-18

    class WLAN - control built-in WiFi interfaces | This class provides a driver for WiFi network processors.
  • Raspberry Pi Ltd, data sheet

    https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf

    Locator: Pico datasheet, Getting started tip · Retrieved 2026-10-18

    See the Raspberry Pi Pico-series Python SDK book to get started with MicroPython, which is the fastest way to get code running on Pico.
  • Raspberry Pi Ltd, data sheet

    https://datasheets.raspberrypi.com/pico/pico-2-datasheet.pdf

    Locator: Pico 2 datasheet, Getting started tip · Retrieved 2026-10-18

    See the Raspberry Pi Pico-series Python SDK book to get started with MicroPython, which is the fastest way to get code running on Pico 2.

How we verify