|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Abstract base class for LCD panels. More...
Classes | |
| struct | config |
| Configuration structure for LCD panels. More... | |
Public Member Functions | |
| virtual | ~panel ()=default |
| panel (const panel &)=delete | |
| panel & | operator= (const panel &)=delete |
| virtual esp_lcd_panel_handle_t | idf_handle () const =0 |
| Returns the underlying ESP-IDF handle. | |
| void | swap_xy (bool swap) |
| Swaps the X and Y axes. | |
| virtual result< void > | try_swap_xy (bool swap)=0 |
| Swaps the X and Y axes. | |
| void | mirror (bool mirrorX, bool mirrorY) |
| Mirrors the display. | |
| virtual result< void > | try_mirror (bool mirrorX, bool mirrorY)=0 |
| Mirrors the display. | |
| void | display_on (bool on) |
| Turns the display on or off. | |
| virtual result< void > | try_display_on (bool on)=0 |
| Turns the display on or off. | |
Protected Member Functions | |
| panel ()=default | |
|
virtualdefault |
|
protecteddefault |
Turns the display on or off.
| on | true to turn on, false to turn off. |
| std::system_error | on error. |
Definition at line 98 of file panel.hpp.
References try_display_on(), and idfxx::unwrap().
|
pure virtual |
Returns the underlying ESP-IDF handle.
Implemented in idfxx::lcd::ili9341.
Mirrors the display.
| mirrorX | true to mirror horizontally. |
| mirrorY | true to mirror vertically. |
| std::system_error | on error. |
Definition at line 80 of file panel.hpp.
References try_mirror(), and idfxx::unwrap().
Swaps the X and Y axes.
| swap | true to swap, false for normal. |
| std::system_error | on error. |
Definition at line 62 of file panel.hpp.
References try_swap_xy(), and idfxx::unwrap().
Turns the display on or off.
| on | true to turn on, false to turn off. |
Implemented in idfxx::lcd::ili9341.
Referenced by display_on().
Mirrors the display.
| mirrorX | true to mirror horizontally. |
| mirrorY | true to mirror vertically. |
Implemented in idfxx::lcd::ili9341.
Referenced by mirror().
Swaps the X and Y axes.
| swap | true to swap, false for normal. |
Implemented in idfxx::lcd::ili9341.
Referenced by swap_xy().