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

Ongoing dev for v0.0.2 #2

Merged
merged 20 commits into from
Mar 30, 2023
Merged

Ongoing dev for v0.0.2 #2

merged 20 commits into from
Mar 30, 2023

Conversation

Gadgetoid
Copy link
Member

No description provided.

@Gadgetoid
Copy link
Member Author

Gadgetoid commented Mar 9, 2023

Make sure we've documented halt - pimoroni/pimoroni-pico#594

And the caveat mentioned here - pimoroni/pimoroni-pico#449

And maybe also - pimoroni/pimoroni-pico#334

README.md Outdated

### Badger 2040

1. Connect your Badger 2040 to your computer using a USB A to microB cable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be USB C for Badger and USB micro-B for Badger W :)

@Gadgetoid
Copy link
Member Author

Bumped to build against Pimoroni Pico release v1.19.17 - https://github.com/pimoroni/pimoroni-pico/releases/tag/v1.19.17

This version includes the MicroPython greedy heap, which is bad news for some of our modules.
v1.19.17 includes many fixes for compatibility with changes to MicroPython, specifically: micropython/micropython@c80e7c1.

Requires C++17 enabling in .cmake files.
Holding down a button, or pressing a button with the "right" timing would keep the Badger on, despite the 3v3 en pin being turned off.

This would result in abrupt power loss when the button is released, causing screen corruption.
Fix "import ntptime" breaking clock on Badger 2040 (non W).

Use "is_wireless()" and don't squash unexpected errors.
Using `not badger2040.woken_by_button()` to determine if the display should be refreshed on first run prevented these examples from showing their initial display on battery.
Simplified image.py by removing help text and readme creation.

Tried to avoid "state_save" right before updating the display.
It's too easy to accidentally trigger this when launching an app.
This module redirects `malloc` and `free` calls to MicroPython's heap, allowing C++ code and MicroPython's "greedy heap" to coexist.

See: micropython/micropython#11116
@Gadgetoid Gadgetoid merged commit 52baf7f into main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants