|
| enum class | EPaperState : uint8_t {
IDLE
, UPDATE
, RESET
, RESET_END
,
SHOULD_WAIT
, INITIALISE
, TRANSFER_DATA
, POWER_ON
,
REFRESH_SCREEN
, POWER_OFF
, DEEP_SLEEP
} |
| |
| enum class | Inkplate2Color : uint8_t { BLACK
, WHITE
, RED
} |
| |
| enum | Inkplate6ColorHex : uint8_t {
BLACK = 0
, WHITE = 1
, GREEN = 2
, BLUE = 3
,
RED = 4
, YELLOW = 5
, ORANGE = 6
} |
| |
| enum | JD79660Color : uint8_t { BLACK = 0
, WHITE = 1
, YELLOW = 5
, RED = 4
} |
| | Pixel color as 2bpp. More...
|
| |
| enum | E6Color : uint8_t {
BLACK = 0
, WHITE = 1
, YELLOW = 5
, RED = 4
,
BLUE = 3
, GREEN = 2
} |
| |
| enum class | BwrState : uint8_t {
BWR_BLACK
, BWR_WHITE
, BWR_RED
, BWR_BLACK
,
BWR_WHITE
, BWR_RED
} |
| |
| enum class | BwrState : uint8_t {
BWR_BLACK
, BWR_WHITE
, BWR_RED
, BWR_BLACK
,
BWR_WHITE
, BWR_RED
} |
| |
|
| template<typename NATIVE_COLOR > |
| constexpr NATIVE_COLOR | color_to_bwyr (Color color, NATIVE_COLOR hw_black, NATIVE_COLOR hw_white, NATIVE_COLOR hw_yellow, NATIVE_COLOR hw_red) |
| | Map RGB color to discrete BWYR hex 4 color key.
|
| |
| template<typename NATIVE_COLOR > |
| constexpr NATIVE_COLOR | color_to_bwr (Color color, NATIVE_COLOR hw_black, NATIVE_COLOR hw_white, NATIVE_COLOR hw_red) |
| | Map RGB color to discrete BWR (black/white/red) 3 color key.
|
| |
| template<typename NATIVE_COLOR > |
| constexpr NATIVE_COLOR | color_to_bwyrgb (Color color, NATIVE_COLOR hw_black, NATIVE_COLOR hw_white, NATIVE_COLOR hw_yellow, NATIVE_COLOR hw_red, NATIVE_COLOR hw_green, NATIVE_COLOR hw_blue) |
| | Map RGB color to discrete BWYRGB hex 6 color key.
|
| |
| template<typename NATIVE_COLOR > |
| constexpr NATIVE_COLOR | color_to_bwyrgbo (Color color, NATIVE_COLOR hw_black, NATIVE_COLOR hw_white, NATIVE_COLOR hw_yellow, NATIVE_COLOR hw_red, NATIVE_COLOR hw_green, NATIVE_COLOR hw_blue, NATIVE_COLOR hw_orange) |
| | Map RGB color to discrete BWYRGBO hex 7 color key.
|
| |
template<typename NATIVE_COLOR >
| NATIVE_COLOR esphome::epaper_spi::color_to_bwyrgb |
( |
Color | color, |
|
|
NATIVE_COLOR | hw_black, |
|
|
NATIVE_COLOR | hw_white, |
|
|
NATIVE_COLOR | hw_yellow, |
|
|
NATIVE_COLOR | hw_red, |
|
|
NATIVE_COLOR | hw_green, |
|
|
NATIVE_COLOR | hw_blue ) |
|
constexpr |
Map RGB color to discrete BWYRGB hex 6 color key.
Divides the RGB cube into 8 corners by which components are "on" (over 128), same as color_to_bwyr, but also resolves the green and blue corners instead of folding them into white/black.
- Template Parameters
-
| NATIVE_COLOR | Type of native hardware color values |
- Parameters
-
| color | RGB color to convert from |
| hw_black | Native value for black |
| hw_white | Native value for white |
| hw_yellow | Native value for yellow |
| hw_red | Native value for red |
| hw_green | Native value for green |
| hw_blue | Native value for blue |
- Returns
- Converted native hardware color value
Definition at line 102 of file colorconv.h.
template<typename NATIVE_COLOR >
| NATIVE_COLOR esphome::epaper_spi::color_to_bwyrgbo |
( |
Color | color, |
|
|
NATIVE_COLOR | hw_black, |
|
|
NATIVE_COLOR | hw_white, |
|
|
NATIVE_COLOR | hw_yellow, |
|
|
NATIVE_COLOR | hw_red, |
|
|
NATIVE_COLOR | hw_green, |
|
|
NATIVE_COLOR | hw_blue, |
|
|
NATIVE_COLOR | hw_orange ) |
|
constexpr |
Map RGB color to discrete BWYRGBO hex 7 color key.
Same corner logic as color_to_bwyrgb, except the red/yellow corner is split three ways instead of two, for panels with a dedicated orange ink.
- Template Parameters
-
| NATIVE_COLOR | Type of native hardware color values |
- Parameters
-
| color | RGB color to convert from |
| hw_black | Native value for black |
| hw_white | Native value for white |
| hw_yellow | Native value for yellow |
| hw_red | Native value for red |
| hw_green | Native value for green |
| hw_blue | Native value for blue |
| hw_orange | Native value for orange |
- Returns
- Converted native hardware color value
Definition at line 164 of file colorconv.h.