Maestro Servo Controller icon Maestro Servo Controller USB control for Pololu Maestro (6/12/18/24) via ARC Vx ports. Maps Vx to Maestro channels; supports position, speed, acceleration, release. Try it →
 

Get

PWM.get(port, [ezbIndex])

Parameters

port Port to get PWM duty cycle from.
ezbIndex (optional) Board index of the EZB to get PWM duty cycle from.

Returns

The PWM duty cycle percentage of the specified port as a value between 0 and 100.

Description

Returns the PWM duty cycle percentage of the specified port. Duty cycle percentage is returned as a value between 0 and 100.