Skip to main content

Class Keyboard.KeyboardKey

Represents a Keyboard key as a Meadow digital input

Assembly: Meadow.Keyboard.dll
View Source
public class Keyboard.KeyboardKey : DigitalInterruptPortBase, IDigitalInterruptPort, IDigitalInputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable, IObservable<IChangeResult<DigitalState>>

Inheritance: System.Object -> Meadow.Hardware.PortBase<Meadow.Hardware.IDigitalChannelInfo> -> Meadow.Hardware.DigitalPortBase -> Meadow.Hardware.DigitalInputPortBase -> Meadow.Hardware.DigitalInterruptPortBase

Implements:
Meadow.Hardware.IDigitalInterruptPort, Meadow.Hardware.IDigitalInputPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>, System.IDisposable, System.IObservable<Meadow.IChangeResult<Meadow.Hardware.DigitalState>>

Properties

State

the state of the key, <b>true</b> being "down"

View Source
public override bool State { get; }

Resistor

Virtual resistor mode of the key. Always InternalPullUp

View Source
public override ResistorMode Resistor { get; set; }

DebounceDuration

Debounce duration of the key. Unsupported because the hardware handles this.

View Source
public override TimeSpan DebounceDuration { get; set; }

GlitchDuration

Glitch filter duration of the key. Unsupported because the hardware handles this.

View Source
public override TimeSpan GlitchDuration { get; set; }

Implements

  • Meadow.Hardware.IDigitalInterruptPort
  • Meadow.Hardware.IDigitalInputPort
  • Meadow.Hardware.IDigitalPort
  • Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
  • System.IDisposable
  • System.IObservable<Meadow.IChangeResult<Meadow.Hardware.DigitalState>>