LGFX

API reference for class LGFX

Report on GitHub

If using LovyanGFX create LGFX class that inherits from lgfx::LGFX_Device https://github.com/lovyan03/LovyanGFX/blob/master/examples/HowToUse/2_user_setting/2_user_setting.ino If using other display drivers that is not LovyanGFX Create an LGFX wrapper class that implements the functions used in lv_lovyan_gfx.cpp

Public Functions

function

LGFX

 
LGFX::LGFX(void)
function

init

 
bool LGFX::init(void)
function

initDMA

 
void LGFX::initDMA(void)
function

waitDMA

 
void LGFX::waitDMA(void)
function

fillScreen

 
void LGFX::fillScreen(uint16_t color)
Parameters
NameType
coloruint16_t
function

setRotation

 
void LGFX::setRotation(uint8_t rotation)
Parameters
NameType
rotationuint8_t
function

pushImage

 
void LGFX::pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *data)
Parameters
function

pushImageDMA

 
void LGFX::pushImageDMA(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *data)
Parameters
function

startWrite

 
void LGFX::startWrite(void)
function

getStartCount

 
uint32_t LGFX::getStartCount(void)
function

endWrite

 
void LGFX::endWrite(void)
function

setBrightness

 
void LGFX::setBrightness(uint8_t brightness)
Parameters
NameType
brightnessuint8_t
function

writePixel

 
void LGFX::writePixel(int32_t x, int32_t y, const uint16_t color)
Parameters
function

getTouch

 
bool LGFX::getTouch(uint16_t *x, uint16_t *y)
Parameters

How is this guide?

Last updated on

On this page