Reference Language | Libraries | Comparison | Changes
There is 4 objects pointing to each possible motor: M1, M2, M3 and M4.
M1.setDuty(int)
M2.setDuty(int)
M3.setDuty(int)
M4.setDuty(int)
setDuty(int)
: Set the duty cycle of the dc motor (from -100 to +100) , 0 means stop.
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.