Get started with MicroPython Micropython help ()
Digi XBee® 3 Zigbee® RF Module
40
Control commands:
CTRL-A -- on a blank line, enter raw REPL mode
CTRL-B -- on a blank line, enter normal REPL mode
CTRL-C -- interrupt a running program
CTRL-D -- on a blank line, reset the REPL
CTRL-E -- on a blank line, enter paste mode
CTRL-F -- on a blank line, enter flash upload mode
For further help on a specific object, type help(obj)
For a list of available modules, type help('modules')
-------------------------------------------------------
------------------------------------------------------
When you type help('modules') at the prompt, it displays all available Micropython modules.
------------------------------------------------------
>>> help('modules')
__main__ io time uos
array json ubinascii ustruct
binascii machine uerrno utime
builtins micropython uhashlib xbee
errno os uio
gc struct ujson
hashlib sys umachine
Plus any modules on the filesystem
------------------------------------------------------
When you import a module and type help() with the module as the object, you can query all the
functions that the object supports.
------------------------------------------------------
>>> import sys
>>> help(sys)
object <module 'sys'> is of type module
__name__ -- sys
path -- ['', '/flash', '/flash/lib']
argv -- ['']
version -- 3.4.0
version_info -- (3, 4, 0)
implementation -- ('micropython', (1, 10, 0))
platform -- xbee3-Zigbee
byteorder -- little
maxsize -- 2147483647
exit -- <function>
stdin -- <io.FileIO 0>
stdout -- <io.FileIO 1>
stderr -- <io.FileIO 2>
modules -- {}
print_exception -- <function>
-------------------------------------------------------