QuadratureRotaryEncoder Class

Definition

Binding that exposes a quadrature rotary encoder

public class QuadratureRotaryEncoder : IDisposable
type QuadratureRotaryEncoder = class
    interface IDisposable
Public Class QuadratureRotaryEncoder
Implements IDisposable
Inheritance
QuadratureRotaryEncoder
Derived
Implements

Constructors

QuadratureRotaryEncoder(Int32, Int32, Int32)

QuadratureRotaryEncoder constructor

QuadratureRotaryEncoder(Int32, Int32, PinEventTypes, Int32, GpioController, Boolean)

QuadratureRotaryEncoder constructor

Properties

Debounce

The Debounce property represents the minimum amount of delay allowed between falling edges of the A (clk) pin. The recommended value are few milliseconds typically around 5. This depends from your usage.

PulseCount

The number of pulses before or after the start position of the encoder

PulsesPerRotation

The number of pulses expected per rotation of the encoder

Rotations

The number of rotations backwards or forwards from the initial position of the encoder

Methods

Dispose()

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

OnPulse(Boolean, Int32)

Modify the current value on receipt of a pulse from the rotary encoder.

Events

PulseCountChanged

EventHandler to allow the notification of value changes.

Applies to