MotorPins Class
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.
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
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