def getRaw(self): """Get the PWM value directly from the hardware. Read a raw value from a PWM channel. :returns: Raw PWM control value. Range: 0 - 255. :rtype: int """ return hal.getPWM(self.port)
def getRaw(self): """Get the PWM value directly from the hardware. Read a raw value from a PWM channel. :returns: Raw PWM control value. Range: 0 - 255. :rtype: int """ if self.port is None: raise ValueError("operation on freed port") return hal.getPWM(self.port)