idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::lcd::panel Class Referenceabstract

Abstract base class for LCD panels. More...

Inheritance diagram for idfxx::lcd::panel:
idfxx::lcd::ili9341

Classes

struct  config
 Configuration structure for LCD panels. More...
 

Public Member Functions

virtual ~panel ()=default
 
virtual esp_lcd_panel_handle_t idf_handle () const =0
 Returns the underlying ESP-IDF handle.
 
virtual 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.
 
virtual void mirror (bool mirrorX, bool mirrorY)
 Mirrors the display.
 
virtual result< void > try_mirror (bool mirrorX, bool mirrorY)=0
 Mirrors the display.
 
virtual 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.
 

Detailed Description

Abstract base class for LCD panels.

Definition at line 30 of file panel.hpp.

Constructor & Destructor Documentation

◆ ~panel()

virtual idfxx::lcd::panel::~panel ( )
virtualdefault

Member Function Documentation

◆ display_on()

virtual void idfxx::lcd::panel::display_on ( bool  on)
inlinevirtual

Turns the display on or off.

Parameters
ontrue to turn on, false to turn off.
Note
Only available when CONFIG_COMPILER_CXX_EXCEPTIONS is enabled in menuconfig.
Exceptions
std::system_erroron error.

Definition at line 95 of file panel.hpp.

References try_display_on(), and idfxx::unwrap().

◆ idf_handle()

virtual esp_lcd_panel_handle_t idfxx::lcd::panel::idf_handle ( ) const
pure virtual

Returns the underlying ESP-IDF handle.

Implemented in idfxx::lcd::ili9341.

◆ mirror()

virtual void idfxx::lcd::panel::mirror ( bool  mirrorX,
bool  mirrorY 
)
inlinevirtual

Mirrors the display.

Parameters
mirrorXtrue to mirror horizontally.
mirrorYtrue to mirror vertically.
Note
Only available when CONFIG_COMPILER_CXX_EXCEPTIONS is enabled in menuconfig.
Exceptions
std::system_erroron 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
swaptrue to swap, false for normal.
Note
Only available when CONFIG_COMPILER_CXX_EXCEPTIONS is enabled in menuconfig.
Exceptions
std::system_erroron 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
ontrue 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
mirrorXtrue to mirror horizontally.
mirrorYtrue 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
swaptrue 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: