/// Enable or disable segment `a` according to the `state`
Enable or disable segment `a` according to the `state`
Enable or disable segment ` a ` according to the ` state `
pub fn seg_a(&mut self, state: bool) -> Result<(), ()> {
        if state {
            self.seg_a.set_high().map_err(|_| ())
        } else {
            self.seg_a.set_low().map_err(|_| ())
        }
    }
pub fn seg_a ( & mut self , state : bool ) -> Result < ( ) , ( ) > { if state { self . seg_a . set_high ( ) . map_err ( | _ | ( ) ) } else { self . seg_a . set_low ( ) . map_err ( | _ | ( ) ) } }
Enable or disable segment `a` according to the `state`
Enable or disable segment ` a ` according to the ` state `
&mut self
<not_specific>
state
bool
<not_specific>