You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
450 B

  1. #pragma once
  2. #include <array>
  3. #include <stdexcept>
  4. #include "common.h"
  5. namespace esphome {
  6. namespace yeelight {
  7. namespace bs2 {
  8. class ColorOff : public GPIOOutputs {
  9. public:
  10. bool set_light_color_values(light::LightColorValues v) {
  11. values = v;
  12. red = 0.0f;
  13. green = 0.0f;
  14. blue = 0.0f;
  15. white = 0.0f;
  16. return true;
  17. }
  18. };
  19. } // namespace yeelight_bs2
  20. } // namespace yeelight
  21. } // namespace bs2