docs: def _update_pwm(self):
          """Update the pwm values of the driver regarding the current state."""
          if self._is_on:
              values = self._get_pwm_values()
          else:
              values = [0] * len(self._driver.pins)
  
          self._driver.set_pwm(values)