How do I add the badger version number to the badger info page?
You mean the MicroPython build version? I’m not sure if there’s a way of accessing that info from within MicroPython (though Thonny must get it from somewhere - hmm!)
On a Pi Pico that I have loaded the flash_nuke.uf2.
In boot mood the INFO_UF2.TXT file is as follows.
UF2 Bootloader v2.0
Model: Raspberry Pi RP2
If I then launch Thonny, while its still in boot mode. I get this prompt.
I clicked install and Thonny reported
MicroPython v1.18 on 2022-01-17; Raspberry Pi Pico with RP2040
INFO_UF2.TXT reads the same. I would imagine it was flashed with the stock Pi Foundation Micro Python uf2.
Just a FYI, post. Might be worth looking at the Badgers INFO_UF2.TXT file
This begs the question, how does one look at / access the hidden uf2 files?
That info is stored somewhere on the device. Thonny reports the following for my Pico Lipo 16mb, which was flashed with the custom Pimoroni uf2.
MicroPython v1.18 on 2022-03-21; Pimoroni Pico Lipo 16MB with RP2040
It should just be a case of
import uos print(uos.uname())
… although I haven’t done tried to change the Badger code to do this, myself, yet.
Just ran it on my 16mb Pico Lipo, which is running an unofficial Pimoroni uf2 file. Its the unifying driver test uf2.
MicroPython v1.18 on 2022-03-21; Pimoroni Pico LiPo 16MB with RP2040 Type "help()" for more information. >>> import uos >>> print(uos.uname()) (sysname='rp2', nodename='rp2', release='1.18.0', version='v1.18 on 2022-03-21 (GNU 10.3.1 MinSizeRel)', machine='Pimoroni Pico LiPo 16MB with RP2040') >>>