machine
— functions related to the board¶
The machine
module contains specific functions related to the board.
Miscellaneous functions¶
-
machine.
unique_id
()¶ Returns a byte string with a unique idenifier 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.
Constants¶
-
machine.
IDLE
¶
-
machine.
SLEEP
¶
-
machine.
DEEPSLEEP
¶ irq wake values
-
machine.
POWER_ON
¶
-
machine.
HARD_RESET
¶
-
machine.
WDT_RESET
¶
-
machine.
DEEPSLEEP_RESET
¶
-
machine.
SOFT_RESET
¶ reset causes
-
machine.
WLAN_WAKE
¶
-
machine.
PIN_WAKE
¶
-
machine.
RTC_WAKE
¶ wake reasons
Classes¶
- class ADC – analog to digital conversion
- class ADCChannel — read analog values from internal or external sources
- class I2C – a two-wire serial protocol
- class Pin – control I/O pins
- class RTC – real time clock
- class SD – secure digital memory card
- class SPI – a master-driven serial protocol
- class Timer – control internal timers
- class TimerChannel — setup a channel for a timer
- class UART – duplex serial communication bus
- class WDT – watchdog timer