FabGL
ESP32 Display Controller and Graphics Library

◆ setOrientation()

void fabgl::TFTController::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);