KeyMatrix Class

Definition

GPIO key matrix Driver

public class KeyMatrix : IDisposable
type KeyMatrix = class
    interface IDisposable
Public Class KeyMatrix
Implements IDisposable
Inheritance
KeyMatrix
Implements

Constructors

KeyMatrix(IEnumerable<Int32>, IEnumerable<Int32>, TimeSpan, GpioController, Boolean)

Initialize key matrix

KeyMatrix(IEnumerable<Int32>, IEnumerable<Int32>, TimeSpan, PinMode, GpioController, Boolean)

Initialize key matrix

Properties

InputPins

Get input pins

Item[Int32]

Get buttons' values by output

OutputPins

Get output pins

ScanInterval

Get or set interval in milliseconds

Values

Get all buttons' values

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReadKey()

Blocks execution until a key event is received

StartListeningKeyEvent()

Start listening to key events

StopListeningKeyEvent()

Stop listening to key events

Events

KeyEvent

The raised event

Applies to