Click or drag to resize
MotorHat2348CreateDCMotor Method
Creates a PwmDCMotor object for the specified channel and adds it to the list of Motors.

Namespace:  Adafruit.IoT.Devices
Assembly:  Adafruit.IoT (in Adafruit.IoT.dll) Version: 1.0.6.0 (1.0.6.0)
Syntax
public PwmDCMotor CreateDCMotor(
	byte driverChannel
)

Parameters

driverChannel
Type: SystemByte
A motor driver channel from 1 to 4.

Return Value

Type: PwmDCMotor
The created DCMotor object.
Remarks
The driverChannel parameter refers to the motor driver channels M1, M2, M3 or M4.
See Also