DavesCodeMusings / mpremote-vscode

Visual Studio Code extension for mpremote Python module
BSD 2-Clause "Simplified" License
10 stars 1 forks source link

Menu option to display MicroPython version #26

Open DavesCodeMusings opened 1 month ago

DavesCodeMusings commented 1 month ago

MicroPython version can be found by doing this at the REPL prompt:

>>> from sys import version
>>> print(version)
3.4.0; MicroPython v1.21.0 on 2023-10-05

It could also be done with an MPRemote Exec one-liner:

py.exe -m mpremote connect COM3 exec 'from sys import version; print(version.split(";")[1].lstrip())'
MicroPython v1.21.0 on 2023-10-05

Might be nice to have a menu option for this. Like maybe, Show MicroPython Version (version), right under Set realtime clock