pub fn new(port: Port, pin: u8, dir: Dir) -> Self {
        let mut result = Self { port, pin };

        result.dir(dir);
        result
    }
/// Create a new pin, with a specific direction.
Create a new pin, with a specific direction.
Create a new pin with a specific direction .
pub fn new(port: Port, pin: u8, dir: Dir) -> Self {
        let mut result = Self { port, pin };
        result.dir(dir);
        result
    }
pub fn new ( port : Port , pin : u8 , dir : Dir ) -> Self { let mut result = Self { port , pin } ; result . dir ( dir ) ; result }
Create a new pin, with a specific direction.
Create a new pin with a specific direction .
port
Port
pin
u8
dir
Dir
port
Port
pin
u8
dir
Dir