CircuitPython 5.1.0 with ulab has been released!
From the GitHub release page:
This is CircuitPython 5.1.0, the latest minor revision of CircuitPython and the first 5.1.x stable release. It is identical to 5.1.0-rc.0.
Download from circuitpython.org
Downloads are available from circuitpython.org! The site makes it easy to select the correct file and language for your board. The downloads page is here. Downloads are no longer available from the GitHub release pages because of the large number of files for each release.
New features and improvements since 5.0.0
- ulab, a numpy-like fast vector module (#2583 and others). Thanks @v923z, @jepler
- Perform mathematical operations 10-50x as fast as raw CircuitPython
- Enabled on almost all boards except those with samd21 microcontrollers
- Guide: https://learn.adafruit.com/ulab-crunch-numbers-fast-with-circuitpython/overview
- Support for “f-strings”, a more convenient way to build strings dynamically. (#2690) Thanks @klardotsh, @jepler
- Enabled on almost all boards except those with samd21 microcontrollers.
- mpy-cross signals certain syntax errors better (#2670). Thanks @jepler
- nRF now properly handles unaligned disk reads (#2662). Thanks @jepler
- New builds of unix port and mpy-cross facilitate testing (#2672). Thanks @jepler
- STM port: add PulseOut (#2668). Thanks @hierophect
- STM port: add PulseIn (#2697). Thanks @hierophect
- STM port: fix some GPIO clocking issues (#2680). Thanks @hierophect
- STM port: rename directory to reflect the scope of the port (#2699). Thanks @hierophect
- STM port: change ST drivers submodule to match TinyUSB (#2701). Thanks @hierophect
- Winterbloom Sol: Disable USB HID descriptor (#2681). Thanks @theacodes
- Support importing native modules in native packages (#2657). Thanks @tannewt
- Document proximity and sound_level in design guide (#2684). Thanks @caternuson
- Improve argument validation in displayio (#2666). thanks @dhalbert
- Add TG-Watch02A board (#2695). Thanks @TG-Techie
- Add UARTLogger2 board (#2705). Thanks @nightskysk
- Fix DotStar status LED init (#2712). Thanks @tannewt
Try the latest version of the Mu editor for creating and editing your CircuitPython programs and for easy access to the CircuitPython serial connection (the REPL).
Breaking Changes and Deprecations from 4.x
- 5.0.0 improves our internal filesystem definitions and may overwrite your existing files so make sure to back them up before updating!
bleiomodule has been renamed to
_bleioto indicate that it is meant to be used only for writing BLE libraries, and that its API may change between CircuitPython minor versions. There are many incompatible changes in
_bleiosince 4.0.0. Please use the latest
adafruit_blelibrary for end-user BLE programming.
displayiorefresh API has been revamped to be simpler.
refresh_soonhave been removed. In both 4.x and 5.x, auto refresh will automatically refresh the display so they can be removed. The new
refresh()function can be used to control when the screen refreshes and at a specific rate.
audiomixer.Mixer, which is only available on M4 microcontrollers. Moved
audioio.WaveFileto the new module
audiocore. However, for backwards compatibility, they are still available in
audioio. They will be removed from
audioioin 6.0.0. Thanks @jepler.
stop=arg which will be removed in 6.x. Use
refrom Circuit Playground Express Display build.
gamepadfrom Circuit Playground Express Crickit build.
2 New boards since 5.0.0
displayiooperations that read from an SD card (e.g.,
OnDiskBitmap) will interfere with other SD card operations and can cause lockup. To work around this problem, do not read or write files on the SD while the display is updating, and vice versa.
ulabcan give erroneous results when sorting 2D arrays
ulabcan give erroneous results with expressions like
- See https://github.com/adafruit/circuitpython/issues for other issues.
Thank you to all who used, tested, contributed, helped out, and participated on GitHub and/or Discord, including @dhalbert, @jepler, @hierophect, @ladyada, @TG-Techie, @theacodes, @sommersoft, @tannewt, @v923z and surely more we have missed. Join us on the Discord chat to collaborate.
Documentation is available in readthedocs.io.