pub fn init_pins(&mut self) -> Result<(), StackShieldError<ExpanderError<E>>> {
        let gpio = ExpanderGpio::new(self.expander)?;

        self.pins = Some(gpio);

        let daughterboard = self.daughterboard_is_connected()?;
        if daughterboard {
            self.set_status(StackShieldStatus::Idle)?;
        } else {
            self.set_status(StackShieldStatus::NoBoard)?;
        }

        Ok(())
    }
/// Initializes all the pins of the IO Expander on the target stack shield and updates the status of the struct.
Initializes all the pins of the IO Expander on the target stack shield and updates the status of the struct.
Initializes all the pins of the IO Expander on the target stack shield and updates the status of the struct .
pub fn init_pins(&mut self) -> Result<(), StackShieldError<ExpanderError<E>>> {
        let gpio = ExpanderGpio::new(self.expander)?;
        self.pins = Some(gpio);
        let daughterboard = self.daughterboard_is_connected()?;
        if daughterboard {
            self.set_status(StackShieldStatus::Idle)?;
        } else {
            self.set_status(StackShieldStatus::NoBoard)?;
        }
        Ok(())
    }
pub fn init_pins ( & mut self ) -> Result < ( ) , StackShieldError < ExpanderError < E > > > { let gpio = ExpanderGpio :: new ( self . expander ) ? ; self . pins = Some ( gpio ) ; let daughterboard = self . daughterboard_is_connected ( ) ? ; if daughterboard { self . set_status ( StackShieldStatus :: Idle ) ? ; } else { self . set_status ( StackShieldStatus :: NoBoard ) ? ; } Ok ( ( ) ) }
Initializes all the pins of the IO Expander on the target stack shield and updates the status of the struct.
Initializes all the pins of the IO Expander on the target stack shield and updates the status of the struct .
&mut self