ESPHome
2023.3.2
|
Data Structures | |
class | Animation |
class | ColorUtil |
class | DisplayBuffer |
class | DisplayIsDisplayingPageCondition |
class | DisplayOnPageChangeTrigger |
class | DisplayPage |
class | DisplayPageShowAction |
class | DisplayPageShowNextAction |
class | DisplayPageShowPrevAction |
class | Font |
class | Glyph |
struct | GlyphData |
class | Image |
class | Rect |
Typedefs | |
using | display_writer_t = std::function< void(DisplayBuffer &)> |
Variables | |
const Color | COLOR_OFF (0, 0, 0, 0) |
Turn the pixel OFF. More... | |
const Color | COLOR_ON (255, 255, 255, 255) |
Turn the pixel ON. More... | |
using esphome::display::display_writer_t = typedef std::function<void(DisplayBuffer &)> |
Definition at line 135 of file display_buffer.h.
enum esphome::display::ColorBitness : uint8_t |
Enumerator | |
---|---|
COLOR_BITNESS_888 | |
COLOR_BITNESS_565 | |
COLOR_BITNESS_332 |
Definition at line 7 of file display_color_utils.h.
enum esphome::display::ColorOrder : uint8_t |
Enumerator | |
---|---|
COLOR_ORDER_RGB | |
COLOR_ORDER_BGR | |
COLOR_ORDER_GRB |
Definition at line 6 of file display_color_utils.h.
Enumerator | |
---|---|
DISPLAY_ROTATION_0_DEGREES | |
DISPLAY_ROTATION_90_DEGREES | |
DISPLAY_ROTATION_180_DEGREES | |
DISPLAY_ROTATION_270_DEGREES |
Definition at line 95 of file display_buffer.h.
Enumerator | |
---|---|
DISPLAY_TYPE_BINARY | |
DISPLAY_TYPE_GRAYSCALE | |
DISPLAY_TYPE_COLOR |
Definition at line 89 of file display_buffer.h.
Enumerator | |
---|---|
IMAGE_TYPE_BINARY | |
IMAGE_TYPE_GRAYSCALE | |
IMAGE_TYPE_RGB24 | |
IMAGE_TYPE_TRANSPARENT_BINARY | |
IMAGE_TYPE_RGB565 |
Definition at line 81 of file display_buffer.h.
|
strong |
TextAlign is used to tell the display class how to position a piece of text.
By default the coordinates you enter for the print*() functions take the upper left corner of the text as the "anchor" point. You can customize this behavior to, for example, make the coordinates refer to the center of the text.
All text alignments consist of an X and Y-coordinate alignment. For the alignment along the X-axis these options are allowed:
For the Y-Axis alignment these options are allowed:
These options are then combined to create combined TextAlignment options like:
Definition at line 49 of file display_buffer.h.
const Color esphome::display::COLOR_OFF |
Turn the pixel OFF.
Definition at line 77 of file display_buffer.h.
const Color esphome::display::COLOR_ON |
Turn the pixel ON.
Definition at line 79 of file display_buffer.h.