Page 1 of 1
Listing Modules
Posted: Wed Oct 27, 2021 1:18 pm
by MMliam
Hi,
Is there a way to determine the Modules in a given microPython firmware distribution (i.e. 512K, 1M, 2M)?
Mickey
Re: Listing Modules
Posted: Wed Oct 27, 2021 2:17 pm
by Roberthh
help(“modules”)
Re: Listing Modules
Posted: Wed Oct 27, 2021 2:27 pm
by MMliam
Roberthh,
Thanks!
I knew about the Help("Modules") command, but I wasn't sure it would work with the firmware distributions. I assume that if the firmware is loaded on an ESP-01 (ESP8266), the ESP-01 must be connected to some IDE such as Thonny to query with the Help command.
As the ESP-01S I'm using has 1M of Flash, I wanted to use the 512K distribution to allow memory space for the application. However, I wanted to be sure that the 512K distribution had the functionality I required.
BTW: Do you know if there's a listing of installed modules for each firmware distribution on some website? If a listing is available I won't need to flash a ESP-01S to confirm modules.
Mickey
Re: Listing Modules
Posted: Wed Oct 27, 2021 2:48 pm
by Roberthh
The source should be mpconfigport.h,
https://github.com/micropython/micropyt ... nfigport.h
It shows the settings shared by all ESP8266 port variants. There are boards specific additions in boards/<board_nam>/mpconfigboard.h.
The default settings are in py/mpconfig.py
Re: Listing Modules
Posted: Wed Oct 27, 2021 3:00 pm
by MMliam
Thanks again!
I'm surprised that no one has simply posted the output of the Help("modules") command for the various firmware distributions.
Mickey