Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite the Tufty2040 main menu somewhat #668

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

LionsPhil
Copy link
Contributor

Primarily motivated to get almost everything out of globals and fix issue #631. This is a stripped-down version of the gist there without the memory debugging and reboot-into-direct-boot mode.

Mostly move things to functions. Clean up some dead code and comments. I think the biggest win is not actually the PicoGraphics framebuffer, which is well-behaved, but random temporary floats that were leaking previously.

Also type-annotated and lints clean.

Fixes #631. (As much as I think is possible.)

Primarily motivated to get almost everything out of globals and fix
issue pimoroni#631. This is a stripped-down version of the gist there without
the memory debugging and reboot-into-direct-boot mode.

Mostly move things to functions. Clean up some dead code and comments.
I think the biggest win is not actually the PicoGraphics framebuffer,
which is well-behaved, but random temporary floats that were leaking
previously.

Also type-annotated and lints clean.

Fixes pimoroni#631. (As much as I think is possible.)
@Gadgetoid Gadgetoid added the [- tufty2040 -] https://shop.pimoroni.com/products/tufty-2040 label Feb 13, 2023
@helgibbons
Copy link
Contributor

Thank you! Just given this a test - seems to be working nicely for me with all our examples :)

@Gadgetoid
Copy link
Member

If it passes CI, I'm happy 😄

Thank you both!

@Gadgetoid Gadgetoid merged commit 05391d2 into pimoroni:main Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[- tufty2040 -] https://shop.pimoroni.com/products/tufty-2040
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tufty2040 main.py menu causes memory fragmentation
3 participants