Getting Information about Your Builtin Libraries
The official documentation on the MicroPython libraries is located here:
https://docs.micropython.org/en/latest/
This documentation is very good and it should be your first place to check the libraries you need that are builtin to the MicroPython runtime.
However, sometimes you might need to verify that the version that you are using has the correct models and functions.
Listing the Building MicroPython Modules
Here is the function you can put into the console to list the current modules in your MicroPython runtime:
1 |
|
Result:
1 2 3 4 5 6 7 8 9 10 |
|
Listing Instance Variables and Methods
1 2 3 4 5 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
Sample Response:
1 2 3 4 5 |
|
The output shows:
Class-level attributes like IN, OUT, PULL_UP, etc. which are used for pin configuration Instance methods like value(), on(), off(), toggle() that you can use to control the pin Special attributes like class which are part of Python's object system
This is particularly useful when you're working with different MicroPython boards or versions, as it helps you discover what functionality is available on your specific platform.
Micropython Issues
If you have questions, one of the best places to go is to the MicroPython Discussion area:
I strongly suggest posting questions here before you create an issue on the issue log.
If you have a question that is specific to the Raspberry Pi Pico you can get the RP2 documentation here: