microcontroller — Pin references and cpu functionality

The microcontroller module defines the pins from the perspective of the microcontroller. See board for board-specific pin mappings.

Libraries

microcontroller.cpu

CPU information and control, such as cpu.temperature and cpu.frequency (clock frequency). This object is the sole instance of microcontroller.Processor.

microcontroller.delay_us(delay)

Dedicated delay method used for very short delays. Do not do long delays because it will stall any concurrent code.

microcontroller.disable_interrupts()

Disable all interrupts. Be very careful, this can stall everything.

microcontroller.enable_interrupts()

Enable the interrupts that were enabled at the last disable.

microcontroller.nvm

Available non-volatile memory. This object is the sole instance of nvm.ByteArray when available or None otherwise.

microcontroller.pin — Microcontroller pin names

References to pins as named by the microcontroller