FabGL
ESP32 Display Controller and Graphics Library

◆ setOrientation()

void setOrientation ( TFTOrientation  value,
bool  force = false 
)

Set display orientation and rotation.

Parameters
valueDisplay orientation and rotation

Example:

// rotate by 180 degrees
DisplayController.setOrientation(fabgl::TFTOrientation::Rotate180);

Definition at line 324 of file TFTControllerGeneric.cpp.