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. Other ports are expected to follow the same bindings.

Language

PEP 750 template strings (t"…") sit next to f-strings. The weakref module is available on builds that include it.

All releases