Reference   Language | Libraries | Comparison | Changes

MKRMotorCarrierMotor

Motor

Description

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.

See also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.