def _update_pwm(self):
if self._is_on:<EOL><INDENT>values = self._get_pwm_values()<EOL><DEDENT>else:<EOL><INDENT>values = [<NUM_LIT:0>] * len(self._driver.pins)<EOL><DEDENT>self._driver.set_pwm(values)<EOL>
Update the pwm values of the driver regarding the current state.