KeyMatrix Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for