code: def _setConfig(self, num, value, device, message):
          
          cmd = self._COMMAND.get('set-config')
          self._writeData(cmd, device, params=(num, value, 0x55, 0x2A))
  
          try:
              result = self._serial.read(size=1)
              result = ord(result)
          except serial.SerialException as e:
              self._log and self._log.error("Error: %s", e, exc_info=True)
              raise e
          except TypeError as e:
              result = None
  
          if result is not None and message:
              result = self._CONFIG_RETURN.get(
                  result, 'Unknown return value: {}'.format(result))
  
          return result
docs: Low level method used for all set config commands.
  
          :Parameters:
            num : `int`
              Number that indicates the config option to get from the hardware.
            value : `int`
              The value to set in the hardware device.
            device : `int`
              The device is the integer number of the hardware devices ID and
              is only used with the Pololu Protocol.
            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.