Listing Modules

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Listing Modules

Post by MMliam » Wed Oct 27, 2021 1:18 pm

Hi,

Is there a way to determine the Modules in a given microPython firmware distribution (i.e. 512K, 1M, 2M)?

Mickey

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Listing Modules

Post by Roberthh » Wed Oct 27, 2021 2:17 pm

help(“modules”)

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: Listing Modules

Post by MMliam » Wed Oct 27, 2021 2:27 pm

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

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Listing Modules

Post by Roberthh » Wed Oct 27, 2021 2:48 pm

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

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: Listing Modules

Post by MMliam » Wed Oct 27, 2021 3:00 pm

Thanks again!

I'm surprised that no one has simply posted the output of the Help("modules") command for the various firmware distributions.

Mickey

Post Reply