2021-09-01 06:12 AM
I am trying to build a smart switch using the stm32f7508 disco kit.
To improve the scrolling performance I am cached the container.
it distorted the background image and also some elements of the container stay on the bottom. the container elements are drawn correctly and performance is great. but I can't be able to solve the background image problem please help me.
Here is the images of before and after of my project.
The problems
The code that i written.
uint16_t* sdram = (uint16_t*)(0xC011EE00);
Bitmap::setCache(sdram, 635*1024, 1);
dynamicBitmap1 = Bitmap::dynamicBitmapCreate(272,635,Bitmap::RGB565);
container2.setCacheBitmap(dynamicBitmap1);
container2.enableCachedMode(true);
container2.updateCache();
Here is my design higherarchy
Sorry for the long writeup please help me.