cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Partial Frame Buffer with LTDC

Karim
Associate II

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:

LinK

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.

1 REPLY 1
victor.wu
Associate II

Several steps are required to achieve partial buffer display

1. givevsync

2.flushframebuff

3. startnewtransfer