def _set_brightness(self, value):
    self._check_camera_open()
    if (not (0 <= value <= 100)):
        raise PiCameraValueError(('Invalid brightness value: %d (valid range 0..100)' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_BRIGHTNESS] = Fraction(value, 100)
def _set_brightness(self, value):
    self._check_camera_open()
    if (not (0 <= value <= 100)):
        raise PiCameraValueError(('Invalid brightness value: %d (valid range 0..100)' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_BRIGHTNESS] = Fraction(value, 100)