Trait soft_i2c::OpenDrainPin

source ·
pub trait OpenDrainPin {
    // Required methods
    fn set(&mut self, level: bool);
    fn get(&mut self) -> bool;
}
Expand description

Trait for controlling bidirectional GPIO pins.

Required Methods§

source

fn set(&mut self, level: bool)

Sets the level of the GPIO pin.

source

fn get(&mut self) -> bool

Gets the current level of the GPIO pin.

Implementors§