2020-12-28 10:03 PM
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));
}
}
}
2021-01-04 11:19 PM
Hello,
Please provide more information.
You want a red background or a white background ? Sorry I don't understand.
/Alexandre