Skip to content

Version 1.19.17

Pre-release
Pre-release
Compare
Choose a tag to compare
@Gadgetoid Gadgetoid released this 17 Mar 14:21
· 534 commits to main since this release
cb5db1d

Heap Upheaval

⚠️ This build is incredibly broken, you should use v1.19.16 instead - https://github.com/pimoroni/pimoroni-pico/releases/tag/v1.19.16 ⚠️

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

Full Changelog: v1.19.16...v1.19.17

MicroPython Changes: micropython/micropython@294098d...05bb260

New Contributors