def set_device_brightness(self, brightness):
packet = util.generate_header(CMDTYPE.BRIGHTNESS, <NUM_LIT:1>)<EOL>packet.append(self._brightness)<EOL>s = self._connect()<EOL>s.sendall(packet)<EOL>resp = ord(s.recv(<NUM_LIT:1>))<EOL>return resp == RETURN_CODES.SUCCESS<EOL>
Hardware specific method to set the global brightness for
        this driver's output. This method is required to be implemented,
        however, users should call
        :py:meth:`.driver_base.DriverBase.set_brightness`
        instead of calling this method directly.

        :param int brightness: 0-255 value representing the desired
            brightness level