 | 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)
Syntaxpublic PwmDCMotor CreateDCMotor(
byte driverChannel
)
Public Function CreateDCMotor (
driverChannel As Byte
) As PwmDCMotor
public:
virtual PwmDCMotor^ CreateDCMotor(
[InAttribute] unsigned char driverChannel
) sealed
Parameters
- driverChannel
- Type: SystemByte
A motor driver channel from 1 to 4.
Return Value
Type:
PwmDCMotorThe created DCMotor object.
Remarks
The driverChannel parameter refers to the motor driver channels M1, M2, M3 or M4.
See Also