pub fn new(pins: pins::Keypad, port: &mut Port) -> Self {
        keypad_new!(Self {
            rows: (
                pins.row0.into_pull_up_input(port).into(),
                pins.row1.into_pull_up_input(port).into(),
                pins.row2.into_pull_up_input(port).into(),
                pins.row3.into_pull_up_input(port).into(),
            ),
            columns: (
                pins.col0.into_open_drain_output(port).into(),
                pins.col1.into_open_drain_output(port).into(),
                pins.col2.into_open_drain_output(port).into(),
                pins.col3.into_open_drain_output(port).into(),
                pins.col4.into_open_drain_output(port).into(),
                pins.col5.into_open_drain_output(port).into(),
                pins.col6.into_open_drain_output(port).into(),
                pins.col7.into_open_drain_output(port).into(),
            ),
        })
    }
/// Create a new Keypad from the given pins
Create a new Keypad from the given pins
Create a new Keypad from the given pins
pub fn new(pins: pins::Keypad, port: &mut Port) -> Self {
        keypad_new!(Self {
            rows: (
                pins.row0.into_pull_up_input(port).into(),
                pins.row1.into_pull_up_input(port).into(),
                pins.row2.into_pull_up_input(port).into(),
                pins.row3.into_pull_up_input(port).into(),
            ),
            columns: (
                pins.col0.into_open_drain_output(port).into(),
                pins.col1.into_open_drain_output(port).into(),
                pins.col2.into_open_drain_output(port).into(),
                pins.col3.into_open_drain_output(port).into(),
                pins.col4.into_open_drain_output(port).into(),
                pins.col5.into_open_drain_output(port).into(),
                pins.col6.into_open_drain_output(port).into(),
                pins.col7.into_open_drain_output(port).into(),
            ),
        })
    }
pub fn new ( pins : pins :: Keypad , port : & mut Port ) -> Self { keypad_new ! ( Self { rows ( pins row0 into_pull_up_input ( port ) into ( ) pins row1 into_pull_up_input ( port ) into ( ) pins row2 into_pull_up_input ( port ) into ( ) pins row3 into_pull_up_input ( port ) into ( ) ) columns ( pins col0 into_open_drain_output ( port ) into ( ) pins col1 into_open_drain_output ( port ) into ( ) pins col2 into_open_drain_output ( port ) into ( ) pins col3 into_open_drain_output ( port ) into ( ) pins col4 into_open_drain_output ( port ) into ( ) pins col5 into_open_drain_output ( port ) into ( ) pins col6 into_open_drain_output ( port ) into ( ) pins col7 into_open_drain_output ( port ) into ( ) ) } ) }
Create a new Keypad from the given pins
Create a new Keypad from the given pins
pins
pins::Keypad
port
&mut Port
pins
pins::Keypad
port
&mut Port