Module esp32c2_hal::gpio
source · Expand description
General Purpose I/Os
To get access to the pins, you first need to convert them into a HAL
designed struct from the pac struct GPIO
and IO_MUX
using IO::new
.
let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
let mut led = io.pins.gpio5.into_push_pull_output();
Structs
Enums
- Peripheral input signals for the GPIO mux
- Peripheral output signals for the GPIO mux