def _get_pwm_values(self, brightness=None, color=None):
if brightness is None:<EOL><INDENT>brightness = self.brightness<EOL><DEDENT>if color is None:<EOL><INDENT>color = self.color<EOL><DEDENT>return [(x / <NUM_LIT:255>) * brightness for x in color]<EOL>
Get the pwm values for a specific state of the led.

If a state argument is omitted, current value is used.

:param brightness: The brightness of the state.
:param color: The color of the state.
:return: The pwm values.