[][src]Trait hal_sensor_dht::IoPin

pub trait IoPin {
    pub fn set_input_pullup_mode(&mut self);
pub fn set_output_mode(&mut self); }

Currently, the HAL library only supports InputPin and OutputPin, but we need a pin, which can be reconfigured. Therefore, the GPIO type used should also provide the following functions.

Required methods

pub fn set_input_pullup_mode(&mut self)

Sets the pin to input mode with pullup resistor.

pub fn set_output_mode(&mut self)

Sets the pin to output mode.

Loading content...

Implementors

Loading content...