LGFX
API reference for class LGFX
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)| Name | Type |
|---|---|
color | uint16_t |
function
setRotation
void LGFX::setRotation(uint8_t rotation)| Name | Type |
|---|---|
rotation | uint8_t |
function
pushImage
void LGFX::pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *data)| Name | Type |
|---|---|
x | int32_t |
y | int32_t |
w | int32_t |
h | int32_t |
data | uint16_t * |
function
pushImageDMA
void LGFX::pushImageDMA(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *data)| Name | Type |
|---|---|
x | int32_t |
y | int32_t |
w | int32_t |
h | int32_t |
data | uint16_t * |
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)| Name | Type |
|---|---|
brightness | uint8_t |
function
writePixel
void LGFX::writePixel(int32_t x, int32_t y, const uint16_t color)| Name | Type |
|---|---|
x | int32_t |
y | int32_t |
color | const uint16_t |
function
getTouch
bool LGFX::getTouch(uint16_t *x, uint16_t *y)| Name | Type |
|---|---|
x | uint16_t * |
y | uint16_t * |
How is this guide?
Last updated on