Skip to main content
Karim
Associate III
April 25, 2022
Question

TouchGFX Partial Frame Buffer with LTDC

  • April 25, 2022
  • 1 reply
  • 1048 views

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.

This topic has been closed for replies.

1 reply

victor.wu
Associate III
April 27, 2022

Several steps are required to achieve partial buffer display

1. givevsync

2.flushframebuff

3. startnewtransfer