46 if (now >= this->start_time_ + this->
length_)
49 return clamp((now - this->start_time_) /
float(this->
length_), 0.0f, 1.0f);
constexpr const T & clamp(const T &v, const T &lo, const T &hi, Compare comp)
uint32_t IRAM_ATTR HOT millis()
This class represents the color state for a light object.
Implementation of SPI Controller mode.