MotorPins Class

Definition

Represents a Motor PinConfiguration

public class MotorPins : IEquatable<Iot.Device.MotorHat.MotorPins>
type MotorPins = class
    interface IEquatable<MotorPins>
Public Class MotorPins
Implements IEquatable(Of MotorPins)
Inheritance
MotorPins
Implements

Remarks

The PCA9685 PWM controller is used to control the inputs of two dual motor drivers. Each motor driver circuit has one speed pin and two IN pins. The PWM pin expects a PWM input signal. The two IN pins expect a logic 0 or 1 input signal. The variables SpeedPin, In1Pin and In2Pin variables identify which PCA9685 PWM output pins will be used to drive this DCMotor. The speed variable identifies which PCA9685 output pin is used to drive the PWM input on the motor driver. And the In1Pin and In2Pin are used to specify which PCA9685 output pins are used to drive the xIN1 and xIN2 input pins of the motor driver.

Constructors

MotorPins(Int32, Int32, Int32)

Represents a Motor PinConfiguration

MotorPins(MotorPins)

Properties

EqualityContract
In1Pin

The first pin for controlling direction

In2Pin

The second pin for controlling direction

SpeedPin

The pin controlling the speed of the motor

Methods

<Clone>$()
Deconstruct(Int32, Int32, Int32)
Equals(MotorPins)
Equals(Object)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Equality(MotorPins, MotorPins)
Inequality(MotorPins, MotorPins)

Applies to