3#if defined(USE_ARDUINO) && !defined(CLANG_TIDY)
12#include "NeoPixelBus.h"
49template<
typename T_METHOD,
typename T_COLOR_FEATURE,
bool has_white>
57 void add_leds(uint16_t count_pixels, uint8_t pin) {
58 this->
add_leds(
new NeoPixelBus<T_COLOR_FEATURE, T_METHOD>(count_pixels, pin));
60 void add_leds(uint16_t count_pixels, uint8_t pin_clock, uint8_t pin_data) {
61 this->
add_leds(
new NeoPixelBus<T_COLOR_FEATURE, T_METHOD>(count_pixels, pin_clock, pin_data));
63 void add_leds(uint16_t count_pixels) { this->
add_leds(
new NeoPixelBus<T_COLOR_FEATURE, T_METHOD>(count_pixels)); }
64 void add_leds(NeoPixelBus<T_COLOR_FEATURE, T_METHOD> *controller) {
90 uint8_t u_order =
static_cast<uint8_t
>(order);
103template<
typename T_METHOD,
typename T_COLOR_FEATURE = NeoRgbFeature>
113template<
typename T_METHOD,
typename T_COLOR_FEATURE = NeoRgbwFeature>
ESPColorAccessor * accessor_
ESPColorCorrection correction_
void clear_effect_data(size_t num_leds)
Zero the effect data of the first num_leds LEDs; does nothing before the effect data is allocated.
ChannelColors channel_colors
Color accessor backed by a buffer whose contents have color correction applied.
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
This class is used to represent the capabilities of a light.
light::CorrectedBufferColorAccessor internal_accessor_
void add_leds(NeoPixelBus< T_COLOR_FEATURE, T_METHOD > *controller)
NeoPixelBus< T_COLOR_FEATURE, T_METHOD > * controller_
void clear_effect_data() override
NeoPixelBus< T_COLOR_FEATURE, T_METHOD > * get_controller() const
void add_leds(uint16_t count_pixels, uint8_t pin_clock, uint8_t pin_data)
void write_state(light::LightState *state) override
int32_t size() const override
void add_leds(uint16_t count_pixels, uint8_t pin)
Add some LEDS, can only be called once.
float get_setup_priority() const override
void add_leds(uint16_t count_pixels)
void set_pixel_order(ESPNeoPixelOrder order)
light::LightTraits get_traits() override
light::LightTraits get_traits() override
@ RGB_WHITE
RGB color output and a separate white output.
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
static constexpr uint8_t NO_WHITE
Value of w for an RGB LED strip that uses 3 bytes per led.