ESPHome
2024.11.2
|
Data Structures | |
class | BaseFont |
class | BaseImage |
class | ColorUtil |
class | Display |
class | DisplayBuffer |
class | DisplayIsDisplayingPageCondition |
class | DisplayOnPageChangeTrigger |
class | DisplayPage |
class | DisplayPageShowAction |
class | DisplayPageShowNextAction |
class | DisplayPageShowPrevAction |
class | Rect |
Typedefs | |
using | display_writer_t = std::function< void(Display &)> |
Functions | |
const LogString * | text_align_to_string (TextAlign textalign) |
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... | |
const uint8_t TESTCARD_FONT [3][8] | PROGMEM |
const int | EDGES_TRIGON = 3 |
const int | EDGES_TRIANGLE = 3 |
const int | EDGES_TETRAGON = 4 |
const int | EDGES_QUADRILATERAL = 4 |
const int | EDGES_PENTAGON = 5 |
const int | EDGES_HEXAGON = 6 |
const int | EDGES_HEPTAGON = 7 |
const int | EDGES_OCTAGON = 8 |
const int | EDGES_NONAGON = 9 |
const int | EDGES_ENNEAGON = 9 |
const int | EDGES_DECAGON = 10 |
const int | EDGES_HENDECAGON = 11 |
const int | EDGES_DODECAGON = 12 |
const int | EDGES_TRIDECAGON = 13 |
const int | EDGES_TETRADECAGON = 14 |
const int | EDGES_PENTADECAGON = 15 |
const int | EDGES_HEXADECAGON = 16 |
const float | ROTATION_0_DEGREES = 0.0 |
const float | ROTATION_45_DEGREES = 45.0 |
const float | ROTATION_90_DEGREES = 90.0 |
const float | ROTATION_180_DEGREES = 180.0 |
const float | ROTATION_270_DEGREES = 270.0 |
using esphome::display::display_writer_t = typedef std::function<void(Display &)> |
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.
|
strong |
ImageAlign is used to tell the display class how to position a image.
By default the coordinates you enter for the image() functions take the upper left corner of the image as the "anchor" point. You can customize this behavior to, for example, make the coordinates refer to the center of the image.
All image 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:
|
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:
const LogString * esphome::display::text_align_to_string | ( | TextAlign | textalign | ) |
Definition at line 820 of file display.cpp.
const Color esphome::display::COLOR_OFF |
const uint8_t TESTCARD_FONT [3][8] esphome::display::PROGMEM |
Definition at line 755 of file display.cpp.
const float esphome::display::ROTATION_180_DEGREES = 180.0 |
const float esphome::display::ROTATION_270_DEGREES = 270.0 |