Processor — Microcontroller CPU information and control

Get information about the microcontroller CPU and control it.

Usage:

import microcontroller
print(microcontroller.cpu.frequency)
print(microcontroller.cpu.temperature)
class microcontroller.Processor

You cannot create an instance of microcontroller.Processor. Use microcontroller.cpu to access the sole instance available.

frequency

The CPU operating frequency as an int, in Hertz. (read-only)

temperature

The on-chip temperature, in Celsius, as a float. (read-only)

Is None if the temperature is not available.

uid

The unique id (aka serial number) of the chip as a bytearray. (read-only)