MicroPython 1.28

6 April 2026 · Release

Upstream notes: v1.28.0.

PWM everywhere that matters

machine.PWM landed on the stm32 and alif ports. That completes PWM on all tier 1 and tier 2 microcontroller ports, so a Pico example that fades an LED can move to a pyboard without a different API.

machine.CAN

A common CAN class, tests and documentation, implemented first on STM32 for both bxCAN and FDCAN parts (without the flexible data rate yet). The alif and mimxrt ports use the same bindings from 1.29.

Language

PEP 750 template strings (t"…") sit next to f-strings and match CPython almost exactly. They are switched on in the alif, mimxrt, SAMD51 and webassembly (pyscript) builds. The weakref module adds weakref.ref and weakref.finalize; it is switched on in the webassembly pyscript build and can be enabled in a custom build of any port.

All releases