pub fn write(&self, value: bool) -> Result<(), io::Error> {
        let mut stream = File::create(self.gpio_file("value"))?;
        write!(stream, "{}", value as i32)?;
        Ok(())
    }
/// Write the value to the GPIO value file
Write the value to the GPIO value file
Write the value to the GPIO value file
pub fn write(&self, value: bool) -> Result<(), io::Error> {
        let mut stream = File::create(self.gpio_file("value"))?;
        write!(stream, "{}", value as i32)?;
        Ok(())
    }
pub fn write ( & self , value : bool ) -> Result < ( ) , io :: Error > { let mut stream = File :: create ( self . gpio_file ( " " ) ) ? ; write ! ( stream " " value as i32 ) ? ; Ok ( ( ) ) }
Write the value to the GPIO value file
Write the value to the GPIO value file
&self
value
bool
&self
value
bool