Basahin sa Ingles I-edit

Ibahagi sa


DCMotor Class

Definition

Direct current (DC) motor

C#
public abstract class DCMotor : IDisposable
Inheritance
DCMotor
Derived
Implements

Constructors

Fields

Properties

Controller

GpioController related with operations on pins

Speed

Gets or sets the speed of the motor. Range is -1..1 or 0..1 for 1-pin connection. 1 means maximum speed, 0 means no movement and -1 means movement in opposite direction.

Methods

Create(Int32, GpioController, Boolean)

Creates DCMotor instance using only one pin which allows to control speed in one direction.

Create(Int32, GpioController)
Create(Int32, Int32, GpioController, Boolean, Boolean)

Creates DCMotor instance using two pins which allows to control speed in both directions.

Create(Int32, Int32, GpioController)
Create(Int32, Int32, Int32, GpioController, Boolean)

Creates DCMotor instance using three pins which allows to control speed in both directions.

Create(Int32, Int32, Int32, GpioController)
Create(PwmChannel, Int32, GpioController, Boolean, Boolean)

Creates DCMotor instance using two pins which allows to control speed in both directions.

Create(PwmChannel, Int32, GpioController)
Create(PwmChannel, Int32, Int32, GpioController, Boolean)

Creates DCMotor instance using three pins which allows to control speed in both directions.

Create(PwmChannel, Int32, Int32, GpioController)
Create(PwmChannel)

Creates DCMotor instance using only one pin which allows to control speed in one direction.

Dispose()

Releases the resources used by the DCMotor instance.

Dispose(Boolean)

Releases the resources used by the DCMotor instance.

Extension Methods

Backwards(DCMotor, Double)

Motor turns backwards at indicated speed

Forwards(DCMotor, Double)

Motor turns forwards at indicated speed

Stop(DCMotor)

Stops the Iot.Device.DCMotor

Applies to

Produkto Mga Bersyon
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0