Abstract base class for LCD panels.
More...
Abstract base class for LCD panels.
Definition at line 30 of file panel.hpp.
◆ ~panel()
| virtual idfxx::lcd::panel::~panel |
( |
| ) |
|
|
virtualdefault |
◆ display_on()
| virtual void idfxx::lcd::panel::display_on |
( |
bool |
on | ) |
|
|
inlinevirtual |
Turns the display on or off.
- Parameters
-
| on | true to turn on, false to turn off. |
- Note
- Only available when CONFIG_COMPILER_CXX_EXCEPTIONS is enabled in menuconfig.
- Exceptions
-
| std::system_error | on error. |
Definition at line 95 of file panel.hpp.
References try_display_on(), and idfxx::unwrap().
◆ idf_handle()
◆ mirror()
| virtual void idfxx::lcd::panel::mirror |
( |
bool |
mirrorX, |
|
|
bool |
mirrorY |
|
) |
| |
|
inlinevirtual |
Mirrors the display.
- Parameters
-
| mirrorX | true to mirror horizontally. |
| mirrorY | true to mirror vertically. |
- Note
- Only available when CONFIG_COMPILER_CXX_EXCEPTIONS is enabled in menuconfig.
- Exceptions
-
| std::system_error | on error. |
Definition at line 77 of file panel.hpp.
References try_mirror(), and idfxx::unwrap().
◆ swap_xy()
| virtual void idfxx::lcd::panel::swap_xy |
( |
bool |
swap | ) |
|
|
inlinevirtual |
Swaps the X and Y axes.
- Parameters
-
| swap | true to swap, false for normal. |
- Note
- Only available when CONFIG_COMPILER_CXX_EXCEPTIONS is enabled in menuconfig.
- Exceptions
-
| std::system_error | on error. |
Definition at line 59 of file panel.hpp.
References try_swap_xy(), and idfxx::unwrap().
◆ try_display_on()
| virtual result< void > idfxx::lcd::panel::try_display_on |
( |
bool |
on | ) |
|
|
pure virtual |
Turns the display on or off.
- Parameters
-
| on | true to turn on, false to turn off. |
- Returns
- Success, or an error.
Implemented in idfxx::lcd::ili9341.
Referenced by display_on().
◆ try_mirror()
| virtual result< void > idfxx::lcd::panel::try_mirror |
( |
bool |
mirrorX, |
|
|
bool |
mirrorY |
|
) |
| |
|
pure virtual |
Mirrors the display.
- Parameters
-
| mirrorX | true to mirror horizontally. |
| mirrorY | true to mirror vertically. |
- Returns
- Success, or an error.
Implemented in idfxx::lcd::ili9341.
Referenced by mirror().
◆ try_swap_xy()
| virtual result< void > idfxx::lcd::panel::try_swap_xy |
( |
bool |
swap | ) |
|
|
pure virtual |
Swaps the X and Y axes.
- Parameters
-
| swap | true to swap, false for normal. |
- Returns
- Success, or an error.
Implemented in idfxx::lcd::ili9341.
Referenced by swap_xy().
The documentation for this class was generated from the following file: