ESPHome 2025.5.0
Loading...
Searching...
No Matches
esp_hsv_color.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace light {
8
9struct ESPHSVColor {
10 union {
11 struct {
12 union {
13 uint8_t hue;
14 uint8_t h;
15 };
16 union {
17 uint8_t saturation;
18 uint8_t s;
19 };
20 union {
21 uint8_t value;
22 uint8_t v;
23 };
24 };
25 uint8_t raw[3];
26 };
27 inline ESPHSVColor() ESPHOME_ALWAYS_INLINE : h(0), s(0), v(0) { // NOLINT
28 }
29 inline ESPHSVColor(uint8_t hue, uint8_t saturation, uint8_t value) ESPHOME_ALWAYS_INLINE : hue(hue),
31 value(value) {}
32 Color to_rgb() const;
33};
34
35} // namespace light
36} // namespace esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
ESPHSVColor() ESPHOME_ALWAYS_INLINE
ESPHSVColor(uint8_t hue, uint8_t saturation, uint8_t value) ESPHOME_ALWAYS_INLINE