machine — functions related to the board

The machine module contains specific functions related to the board.

Please use the pyb module functions/methods to control your OpenMV Cam. The machine module exists for understanding other Micro Python code written for other Micro Python boards.

Miscellaneous functions

machine.rng()

Hardware generated random number (int).

machine.unique_id()

Returns a byte string with a unique identifier of a board/SoC. It will vary from a board/SoC instance to another, if underlying hardware allows. Length varies by hardware (so use substring of a full value if you expect a short ID). In some MicroPython ports, ID corresponds to the network MAC address.

machine.info()

Prints out system info.

machine.bootloader()

Activate the DFU bootloader without the BOOT0 pin.