cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX show

张成.1
Associate

I write well void TouchGFXHAL::flushFrameBuffer(const touchgfx::Rect& rect).

But there's something wrong with the display.

I want a red background, but I want a white background on the screen.

void TouchGFXHAL::flushFrameBuffer(const touchgfx::Rect& rect)

{

__IO uint16_t* ptr;

LCD_Set_Window(rect.x, rect.y, rect.width, rect.height);

LCD_WriteRAM_Prepare();

for(int rowidx = 0;rowidx<rect.height;rowidx++)

{

ptr = getClientFrameBuffer() + rect.x + (rowidx + rect.y) * lcddev.width;

for(int colidx=0;colidx<rect.width;colidx++)

{

LCD_WriteRAM(*(ptr + colidx));

}

}

}

1 REPLY 1
Alexandre RENOUX
Principal

Hello,

Please provide more information.

  • TouchGFX version
  • CubeMX version
  • Hardware used (MCU, display interface, external RAM, etc.)

You want a red background or a white background ? Sorry I don't understand.

/Alexandre