ArduinoMotorCarrier - MOTOR

There is 4 objects pointing to each possible motor: M1, M2, M3 and M4.

Syntax

M1.setDuty(int)
M2.setDuty(int)
M3.setDuty(int)
M4.setDuty(int)

Functions

  • setDuty(int): Set the duty cycle of the dc motor (from -100 to +100) , 0 means stop.