MotorHat 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.
Raspberry Pi Motor Hat based on PCA9685 PWM controller
public class MotorHat : IDisposable
type MotorHat = class
interface IDisposable
Public Class MotorHat
Implements IDisposable
- Inheritance
-
MotorHat
- Implements
Constructors
MotorHat(Double, Int32) |
Initializes a new instance of the MotorHat class with the default I2C address and PWM frequency. |
MotorHat(I2cConnectionSettings, Double) |
Initializes a new instance of the MotorHat class with the specified I2C settings and PWM frequency. |
MotorHat(I2cConnectionSettings, Double, IMotorPinProvider) |
Initializes a new instance of the MotorHat class with the specified I2C settings and PWM frequency. |
Fields
I2cAddressBase |
Default I2C address of Motor Hat |
Methods
CreateDCMotor(Int32) |
Creates a Iot.Device.DCMotor object for the specified channel. |
CreatePwmChannel(Int32) |
Creates a PwmChannel from one of the 4 available PWM channels in the MotorHat |
CreateServoMotor(Int32, Double, Double, Double) |
Creates a Iot.Device.ServoMotor from one of the 4 available PWM channels in the MotorHat |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
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