pub fn write_port(&mut self, port: u8, bit: bool) -> Result<(), EI::Error> {
        self.iface.write_register(
            Register::SinglePort(port).into(),
            if bit { 0x01 } else { 0x00 },
        )
    }
/// Write a value to a single I/O port on the expander.
Write a value to a single I/O port on the expander.
Write a value to a single I / O port on the expander .
pub fn write_port(&mut self, port: u8, bit: bool) -> Result<(), EI::Error> {
        self.iface.write_register(
            Register::SinglePort(port).into(),
            if bit { 0x01 } else { 0x00 },
        )
    }
pub fn write_port ( & mut self , port : u8 , bit : bool ) -> Result < ( ) , EI :: Error > { self . iface . write_register ( Register :: SinglePort ( port ) . into ( ) , if bit { 0x01 } else { 0x00 } , ) }
Write a value to a single I/O port on the expander.
Write a value to a single I / O port on the expander .
&mut self
port
u8
bit
bool
&mut self
port
u8
bit
bool