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

#pragma once
#include <array>
#include <stdexcept>
#include "common.h"
namespace esphome {
namespace yeelight {
namespace bs2 {
class ColorOff : public GPIOOutputs {
public:
bool set_light_color_values(light::LightColorValues v) {
values = v;
red = 1.0f;
green = 1.0f;
blue = 1.0f;
white = 0.0f;
return true;
}
};
} // namespace yeelight_bs2
} // namespace yeelight
} // namespace bs2