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.

28 lines
689 B

  1. #pragma once
  2. namespace esphome {
  3. namespace yeelight {
  4. namespace bs2 {
  5. /// A tag, used for logging.
  6. static const char *TAG = "yeelight_bs2";
  7. /// The minimum color temperature in mired. Same as supported by
  8. /// the original Yeelight firmware.
  9. static const int MIRED_MIN = 153;
  10. /// The maximum color temperature in mired. Same as supported by
  11. /// the original Yeelight firmware.
  12. static const int MIRED_MAX = 588;
  13. /// This struct is used to hold GPIO pin duty cycles.
  14. struct DutyCycles {
  15. float red;
  16. float green;
  17. float blue;
  18. float white;
  19. };
  20. } // namespace bs2
  21. } // namespace yeelight
  22. } // namespace esphome