pyb — functions related to the board

The pyb module contains specific functions related to the board.

Miscellaneous functions

pyb.main(filename)

Set the filename of the main script to run after boot.py is finished. If this function is not called then the default file main.py will be executed.

It only makes sense to call this function from within boot.py.

pyb.repl_uart(uart)

Get or set the UART object where the REPL is repeated on.

pyb.sync()

Sync all file systems.

Classes