Skip to content

4.2.0b1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:19

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_task now returns the result of the coroutine that was run.
  • Added pybricks.tools.maybe_async decorator so user-defined async
    functions can be used in both synchronous and asynchronous code, like
    built-in methods.
  • Added reg_len option to pybricks.iodevices.I2CDevice for devices that
    use 16-bit register addresses.

Changed

  • pybricks.iodevices.I2CDevice.write is no longer limited to 32 bytes of
    data when reg is given.