QuadratureRotaryEncoder.OnPulse(Boolean, Int32) Method

Definition

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

protected virtual void OnPulse (bool blnUp, int milliSecondsSinceLastPulse);
abstract member OnPulse : bool * int -> unit
override this.OnPulse : bool * int -> unit
Protected Overridable Sub OnPulse (blnUp As Boolean, milliSecondsSinceLastPulse As Integer)

Parameters

blnUp
Boolean

When true then the value should be incremented otherwise it should be decremented.

milliSecondsSinceLastPulse
Int32

The number of miliseconds since the last pulse.

Applies to