Skip to main content

set

Function set 

Source
pub fn set(pin: GpioPin, value: i32) -> Result<()>
Expand description

Set a GPIO pin’s output level (value: 0 = low, non-zero = high).

§Errors

Returns Error::InvalidParam if the pin is out of range.