ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

set

PWM.set(port, dutyCycle, [ezbIndex])

Parameters

port Port to use.
dutyCycle Duty cycle percentage to set PWM duty cycle to.
ezbIndex (optional) Board index of the EZB to get PWM duty cycle from.

Returns

Nothing

Description

Sets the PWM duty cycle percentage of the specified port to dutyCycle which is a value between 0 and 100.