Module wio_terminal::prelude
source · Expand description
The prelude.
To use wio-terminal effectively, a number of traits and types need to be imported. Instead of importing them each manually, the prelude contains the most commonly used imports.
This can be imported as use wio_terminal::prelude::*
.
Modules
- Minimal and reusable non-blocking I/O layer
Traits
- Accelerometer trait which provides g-normalized readings.
- The EicPin trait makes it more ergonomic to convert a gpio pin into an EIC pin. You should not implement this trait for yourself; only the implementations in the EIC module make sense.
- Read raw acceleration vectors of type
V: Vector
. - Extension trait for simple short-hands for u32 Durations
- Single digital input pin
- Single digital push-pull output pin
- Output pin that can be toggled
- Trait for timers that can enable & disable an interrupt that fires when the timer expires
- Input capture
- Pulse Width Modulation
- A single PWM channel / pin
- Quadrature encoder interface
- ADCs that sample on single channels per request, and do so at the time of the request.
- Millisecond delay
- Microsecond delay
- Blocking read
- Blocking write
- Blocking write + read
- Blocking read
- Write half of a serial interface (blocking variant)
- Blocking transfer
- Blocking write
- _embedded_hal_digital_InputPinDeprecatedSingle digital input pin
- _embedded_hal_digital_OutputPinDeprecatedSingle digital push-pull output pin
- Output pin that can be toggled
- Read half of a serial interface
- Write half of a serial interface
- Full duplex (master mode)
- A count down timer
- Feeds an existing watchdog to ensure the processor isn’t reset. Sometimes commonly referred to as “kicking” or “refreshing”.
- Disables a running watchdog timer so the processor won’t be reset.
- Enables A watchdog timer to reset the processor if software is frozen or stalled.