QuadratureRotaryEncoder Constructors
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.
Overloads
QuadratureRotaryEncoder(Int32, Int32, Int32) |
QuadratureRotaryEncoder constructor |
QuadratureRotaryEncoder(Int32, Int32, PinEventTypes, Int32, GpioController, Boolean) |
QuadratureRotaryEncoder constructor |
QuadratureRotaryEncoder(Int32, Int32, Int32)
QuadratureRotaryEncoder constructor
public QuadratureRotaryEncoder (int pinA, int pinB, int pulsesPerRotation);
new Iot.Device.RotaryEncoder.QuadratureRotaryEncoder : int * int * int -> Iot.Device.RotaryEncoder.QuadratureRotaryEncoder
Public Sub New (pinA As Integer, pinB As Integer, pulsesPerRotation As Integer)
Parameters
- pinA
- Int32
Pin A that is connected to the rotary encoder. Sometimes called clk
- pinB
- Int32
Pin B that is connected to the rotary encoder. Sometimes called data
- pulsesPerRotation
- Int32
The number of pulses to be received for every full rotation of the encoder.
Applies to
QuadratureRotaryEncoder(Int32, Int32, PinEventTypes, Int32, GpioController, Boolean)
QuadratureRotaryEncoder constructor
public QuadratureRotaryEncoder (int pinA, int pinB, System.Device.Gpio.PinEventTypes edges, int pulsesPerRotation, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.RotaryEncoder.QuadratureRotaryEncoder : int * int * System.Device.Gpio.PinEventTypes * int * System.Device.Gpio.GpioController * bool -> Iot.Device.RotaryEncoder.QuadratureRotaryEncoder
Public Sub New (pinA As Integer, pinB As Integer, edges As PinEventTypes, pulsesPerRotation As Integer, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)
Parameters
- pinA
- Int32
Pin A that is connected to the rotary encoder. Sometimes called clk
- pinB
- Int32
Pin B that is connected to the rotary encoder. Sometimes called data
- edges
- PinEventTypes
The pin event types to 'listen' for.
- pulsesPerRotation
- Int32
The number of pulses to be received for every full rotation of the encoder.
- controller
- GpioController
GpioController that hosts Pins A and B.
- shouldDispose
- Boolean
True to dispose the controller