3#ifdef USE_ESP32_VARIANT_ESP32P4
27 state->current_values_as_brightness(&brightness);
Helper class to easily give an object a parent of type T.
Interface to write LightStates to hardware.
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::LightTraits get_traits() override
void write_state(light::LightState *state) override
MipiDsiLight(uint8_t min_brightness, uint8_t max_brightness)
@ BRIGHTNESS
Dimmable light.
uint8_t scale_brightness(float brightness, uint8_t min_brightness, uint8_t max_brightness)