SafePWM¶
-
class
wpilib.SafePWM(channel)[source]¶ Bases:
wpilib.PWM,wpilib.MotorSafetyA raw PWM interface that implements the
MotorSafetyinterfaceConstructor for a SafePWM object taking a channel number.
Parameters: channel (int) – The channel number to be used for the underlying PWM object. 0-9 are on-board, 10-19 are on the MXP port.