2022-04-25 01:01 AM
Hi, There are a lot of examples about TouchGFX with Partial Frame Buffer. But all of them with SPI or I2C LCDs. Even the TouchGFX support page:
I want to know how should I initialize TouchGFX with partial frame buffer by LTDC peripheral. I already did with SPI LCDs and I used this function:
void touchgfxDisplayDriverTransmitBlock(const uint8_t* pixels, uint16_t x, uint16_t y, uint16_t w, uint16_t h)
{
isTransmittingData = 1;
LCD_drawBuffer((uint16_t*)pixels, x, y, w, h);
DisplayDriver_TransferCompleteCallback();
}
In this code function LCD_drawBuffer is defined in SPI LCD library.
How should I do for LTDC?
Thank you.
2022-04-26 08:28 PM
Several steps are required to achieve partial buffer display
1. givevsync
2.flushframebuff
3. startnewtransfer