def setPWMFrequency(self, pwm, device=DEFAULT_DEVICE_ID, message=True):
        """
        Set the PWM frequency.

        :Parameters:
          pwm : `int`
            The PWN frequency to set in hertz.

        :Keywords:
          device : `int`
            The device is the integer number of the hardware devices ID and
            is only used with the Pololu Protocol. Defaults to the hardware's
            default value.
          message : `bool`
            If set to `True` a text message will be returned, if set to `False`
            the integer stored in the Qik will be returned.

        :Returns:
          A text message or an int. See the `message` parameter above.

        :Exceptions:
          * `SerialException`
            IO error indicating there was a problem reading from the serial
            connection.
        """
        return self._setPWMFrequency(pwm, device, message)