Click or drag to resize
PwmDCMotor Class
Represents a DC Motor connected to a PWM controller.
Inheritance Hierarchy
SystemObject
  Adafruit.IoT.MotorsPwmDCMotor

Namespace:  Adafruit.IoT.Motors
Assembly:  Adafruit.IoT (in Adafruit.IoT.dll) Version: 1.0.6.0 (1.0.6.0)
Syntax
public sealed class PwmDCMotor : IMotor, 
	IClosable, IStringable

The PwmDCMotor type exposes the following members.

Methods
  NameDescription
Public methodClose
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRun
Runs the motor in the specified direction.
Public methodSetSpeed
Set the desired motor's speed in revolutions per minute.
Public methodStop
Stop the motor and cut its power.
Public methodToString (Inherited from Object.)
Top
Remarks
This class implements the SetSpeed(Double) method to set the PWM duty cycle range of 0.0 to 1.0 which adjusts the power and therefore the motor speed rather than an RPM speed.
See Also