micropython-stubber icon indicating copy to clipboard operation
micropython-stubber copied to clipboard

Use info from new platform module

Open Josverl opened this issue 3 years ago • 0 comments

V1. 18 added additional information on the board

The platform module has been added to allow querying the compiler and underlying SDK/HAL/libc version. This is enabled on esp32, mimxrt and stm32 ports.

>>> import platform
>>> platform.
libc_ver        platform        python_compiler
>>> platform.platform
<function>
>>> platform.platform()
'MicroPython-1.18.0-xtensa-IDFv4.2.2-with-newlib3.0.0'
>>> platform.libc_ver()
('newlib', '3.0.0')
>>> platform.python_compiler()
'GCC 8.4.0'

platform.platform() 'MicroPython-1.18.0-xtensa-IDFv4.2.2-with-newlib3.0.0'

Josverl avatar Feb 11 '22 04:02 Josverl