Click or drag to resize
RotaryEncoder Class
An implementation of IRotaryEncoder using one GPIO pin for clock and another for direction.
Inheritance Hierarchy
SystemObject
  Microsoft.IoT.Devices.InputRotaryEncoder

Namespace: Microsoft.IoT.Devices.Input
Assembly: Microsoft.IoT.Devices (in Microsoft.IoT.Devices.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public sealed class RotaryEncoder : IRotaryEncoder, 
	IPushButton, IDevice, IClosable, IStringable

The RotaryEncoder type exposes the following members.

Constructors
  NameDescription
Public methodRotaryEncoder
Initializes a new PushButton instance.
Top
Properties
  NameDescription
Public propertyButtonPin
Gets or sets the pin that the button is connected to.
Public propertyClickMode
Gets or sets a value that indicates when the Click event occurs.
Public propertyClockPin
Gets or sets the clock pin.
Public propertyDebounceTimeout
Gets or sets the amount of time in milliseconds that will be used to debounce the button.
Public propertyDirectionPin
Gets or sets the direction pin.
Public propertyIsPressed
Gets a value that indicates if the button is pressed.
Public propertyPressedValue
Gets or sets the GpioPinValue that indicates the button is pressed.
Public propertyUsePullResistors
Gets or sets a value that indicates if integrated pull up or pull down resistors should be used to help maintain the state of the pin.
Top
Methods
  NameDescription
Public methodClose
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventClick
Occurs when the button is clicked.
Public eventPressed
Occurs when the button is pressed.
Public eventReleased
Occurs when the button is released.
Public eventRotated
Occurs when the encoder is rotated.
Top
See Also