[−][src]Crate pyportal
Re-exports
pub use crate::pins::Pins; |
pub use hal::target_device as pac; |
Modules
adc | |
calibration | NVM Software Calibration Area Mapping |
clock | Configuring the system clock sources.
You will typically need to create an instance of |
delay | Delays |
gpio | Working with GPIO pins.
The pins are associated with the PORT hardware. This module
defines a |
pad | |
pins | PyPortal pins |
prelude | Import the prelude to gain convenient access to helper traits |
pwm | |
sercom | Working with the SERCOM peripherals. |
sleeping_delay | Delays with WFI sleep while we wait using a timer |
time | Time units |
timer | Working with timer counter hardware |
timer_traits | |
trng | |
watchdog |
Enums
ResetCause | ResetCause represents the reason the MCU was reset. |
Functions
esp_uart | UART is connected to the ESP32 Wi-Fi co-processor |
i2c_master | Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency. |
reset_cause | Returns the cause of the last reset. |
serial_number | Returns the serial number of the chip as an array of bytes. The serial number is only guaranteed to be unique if all 16 bytes are used. |
spi_master | This powers up SERCOM2 and configures it for use as an
SPI Master in SPI Mode 0.
Unlike the |
split_serial_number | Returns the serial number of the chip as 4 32-bit integers. The serial number is only guaranteed to be unique if all 128 bits are used. |
Attribute Macros
entry | Attribute to declare the entry point of the program |