MotorPins 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
MotorPins(MotorPins) | |
MotorPins(Int32, Int32, Int32) |
Represents a Motor PinConfiguration |
MotorPins(MotorPins)
protected MotorPins (Iot.Device.MotorHat.MotorPins original);
new Iot.Device.MotorHat.MotorPins : Iot.Device.MotorHat.MotorPins -> Iot.Device.MotorHat.MotorPins
Protected Sub New (original As MotorPins)
Parameters
- original
- MotorPins
Applies to
MotorPins(Int32, Int32, Int32)
Represents a Motor PinConfiguration
public MotorPins (int SpeedPin, int In1Pin, int In2Pin);
new Iot.Device.MotorHat.MotorPins : int * int * int -> Iot.Device.MotorHat.MotorPins
Public Sub New (SpeedPin As Integer, In1Pin As Integer, In2Pin As Integer)
Parameters
- SpeedPin
- Int32
The pin controlling the speed of the motor
- In1Pin
- Int32
The first pin for controlling direction
- In2Pin
- Int32
The second pin for controlling direction
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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for