Associate III
April 20, 2021
Question
Slide screen transition problem
- April 20, 2021
- 4 replies
- 4166 views
I created two screens and did the actions to change the screen. But changing the screen does not work correctly.
Added an extra buffer for animation
uint16_t buf_ram [160*128];
using namespace touchgfx;
namespace {
LOCATION_PRAGMA("TouchGFX_Framebuffer")
uint32_t frameBuf[(160 * 128 * 2 + 3) / 4 * 2] LOCATION_ATTRIBUTE("TouchGFX_Framebuffer");
}
void TouchGFXGeneratedHAL::initialize()
{
HAL::initialize();
registerEventListener(*(Application::getInstance()));
setFrameBufferStartAddresses((void*)frameBuf, (void*)(frameBuf + sizeof(frameBuf)/(sizeof(uint32_t)*2)), (void*)buf_ram);
}
