Version 0.0.1
Badger Built Better Beta, Better Back... up... Before...
... uh, giving it a try.
Hello hello! I suspect you've made it here out of curiosity or mild irritation. The latter, no doubt, because we continue to move the goal posts for Badger 2040 and Badger 2040 W projects. I promise this time things will stay... pretty... stable.
This new home for the Badger duo's MicroPython firmware, examples and launcher aims to make it easier to find all the relevant code, documentation and files to get your Pico-powered-badge up and running.
As of this very early release we're missing documentation and a README with contents and probably a few other things need fixing, but if you want to tinker with the future of Badger - it's here!
For users migrating over from Badger 2040 W things are pretty much identical, except that the "badger2040w" module is now called "badger2040" and the "Badger2040W" class is "Badger2040" (sorry @helgibbons) so that code can work on either board without modifications.
If you've come from a Badger 2040 with the old firmware things are going to be a little dicey. Your old code will need migrating, and we'll whip up a guide for that. Stay tuned!
Some differences between the builds and from the previous Badger 2040 build:
- On Badger 2040 W
BUTTON_USER
is set toNone
, since it does not have a user button. icon
andimage
are sort-of badly shimmed in but considered deprecated. Use JPEGs instead!- Everything now uses PicoGraphics, though the
badger2040
wrapper tries to smooth over the differences. - Thickness behaviour has changed slightly, it only affects Hershey fonts. To make thick lines use:
line(x1, y1, x2, y2, thickness)
- Apps have moved to the "examples/" dir, and the whole "Badger OS" structure is generally a little neater
The module, "badger2040" has an is_wireless()
function that returns True
on Badger 2040 W and False
on Badger 2040. This can be useful for writing examples that use wireless functionality but want to fail gracefully on non-W. If you import anything relating to networking on Badger 2040 ("network", "mip", "mqtt", "ntptime", "urequests", etc) you'll get an ImportError
you'll otherwise need to catch.
with-badger-os.uf2
builds include a full filesystem which WILL OVERWRITE THE CONTENTS OF YOUR BADGER, please make sure you back up anything important via Thonny before trying these builds!