4.2.0b1 - 2026-11-26
Fixed
- Fixed a buffer overflow on Move Hub when its name is 13 or more characters.
- Fixed City Hub sometimes not turning on properly after being switched off.
Added
pybricks.tools.run_tasknow returns the result of the coroutine that was run.- Added
pybricks.tools.maybe_asyncdecorator so user-defined async
functions can be used in both synchronous and asynchronous code, like
built-in methods. - Added
reg_lenoption topybricks.iodevices.I2CDevicefor devices that
use 16-bit register addresses.
Changed
pybricks.iodevices.I2CDevice.writeis no longer limited to 32 bytes of
data whenregis given.