pub struct Keypad { /* fields omitted */ }
Expand description

NeoTrellis M4 Express 8x4 keypad

Implementations

Get a 2d array of embedded-hal input pins, each representing one key in the keypad matrix.

Give back ownership of the row and column pins.

This consumes the keypad struct. All references to its virtual KeypadInput pins must have gone out of scope before you try to call .release(), or it will fail to compile. Opting in to the non-lexical lifetimes feature in your project can make that simpler.

The column pins will be returned inside of RefCells (because macros are hard). You can use .into_inner() to extract each column pin from its RefCell.

Create a new Keypad from the given pins

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.