TouchGFX application is running on simulator but failed when it runs on discovery board.
As per the tutorial 5: https://support.touchgfx.com/docs/tutorials/tutorial-05, I have implemented a custom trigger as per part 1. Its work perfectly on simulator but it did not run on discovery board.
When I debug this application, control went to buttonCallback handler but never hit to setBackGroundColor function.
Please let me know what I am missing.
void Screen1ViewBase::setBackGroundColor(colortype value)
{
//Interaction1
//When setBackGroundColor is called execute C++ code
//Execute C++ code
backGround.setColor(value);
backGround.invalidate();
}
void Screen1ViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
if (&src == &button)
{
//Interaction2
//When button clicked call setBackGroundColor on Screen1
//Call setBackGroundColor
setBackGroundColor(touchgfx::Color::getColorFrom24BitRGB(rand()%256, rand()%256, rand()%256));
}
}
