pyb — functions related to the board

The pyb module contains specific functions related to the board.

Miscellaneous functions


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

It only makes sense to call this function from within


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


Return a 24-bit software generated random number.


Sync all file systems.


Returns a string of 6 bytes (48 bits), which is the unique ID of the MCU. This also corresponds to the MAC address of the WiPy.