MotorHat Class

Definition

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