Version 1.19.17
Pre-releaseHeap Upheaval
A recent change in MicroPython took away the last remaining drips of heap memory that some of our modules (erroneously) relied upon, this release is mostly a great sweeping set of changes to fix these instances and ensure we can continue to follow the latest and greatest MicroPython changes and integrate Bluetooth when it comes.
This is a pretty significant set of changes which may not be complete, if you encounter issues let us know and try version 1.19.16 instead.
Most of these changes have no user-visible effect and everything should work as before, with the notable exception of:
Unicorn Pack & Scroll Pack
As part of these changes both Unicorn Pack and Scroll Pack received a refactor into MicroPython class style modules, so:
import picounicorn
picounicorn.init()
Becomes:
from picounicorn import PicoUnicorn
picounicorn = PicoUnicorn()
As an added bonus we've thrown in PicoGraphics support for both of these boards. Neither benefit particularly from all that fancy graphics stuff, but it's nice to have party. PicoGraphics for Scroll Pack and Unicorn Pack works like it does for Cosmic/Galactic Unicorn, here's a minimal example for Scroll Pack:
from picographics import PicoGraphics, DISPLAY_SCROLL_PACK, PEN_P8
from picoscroll import PicoScroll
graphics = PicoGraphics(DISPLAY_SCROLL_PACK, pen_type=PEN_P8)
scroll = PicoScroll()
while True:
graphics.set_pen(0)
graphics.clear()
graphics.set_pen(255)
graphics.text("Boo", 0, 0, scale=1)
scroll.update(graphics)
ℹ️ Note that Scroll Pack's update()
method now accepts a PicoGraphics instance, if you want to use it without PicoGraphics you can call show()
instead.
Bye bye Badger Builds
The builds for Badger 2040 and Badger 2040 W have been removed. You should head over to https://github.com/pimoroni/badger2040/releases where you'll find ongoing releases for Badger boards.
What's Changed
- MicroPython: Tidy up CMake files for our boards. by @Gadgetoid in #709
- clock.py: constrain hour to 0 to 24 by @mogenson in #715
- i75/i75w: Auto-detect board and set up user button. by @ageeandakeyboard in #655
- MicroPython: Avoid heap allocations in all C++ modules. by @Gadgetoid in #711
Full Changelog: v1.19.16...v1.19.17
MicroPython Changes: micropython/micropython@294098d...05bb260