FabGL
ESP32 Display Controller and Graphics Library
|
|
virtual |
Sets TFT resolution and viewport size.
Viewport size can be larger than display size. You can pan the view using TFTController.setScreenCol() and TFTController.setScreenRow().
modeline | Native display reoslution. Allowed values like TFT_240x240, TFT_240x320... |
viewPortWidth | Virtual viewport width. Should be larger or equal to display native width. |
viewPortHeight | Virtual viewport height. Should be larger or equal to display native height. |
doubleBuffered | if True allocates another viewport of the same size to use as back buffer. |
Example:
DisplayController.setResolution(TFT_240x240);
Implements BaseDisplayController.
Definition at line 212 of file TFTControllerGeneric.cpp.