cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G-DISCO, TouchGFX

AD�?b
Senior

Hi

How to display an image so that it is replaced with another screen after a while?

Andrzej

4 REPLIES 4
Alexandre RENOUX
Principal

Hello,

Please elaborate.

/Alexandre

AD�?b
Senior

Hello,

I am displaying the logo on the STM32F746G-DISCO screen. It is displayed after turning on the power. I want to display, for example, 50 seconds and then a screen with text appears. After touching the new screen, the screen with buttons should appear.

Andrzej

JPeča.1
Associate III

Hi, I do not know, if I understood exactly, but I have an example for you. I have an application with logo at the beggings, which comes from 0 alpha to 255 a then it is switched to the application screen. I think, it could help you.

Screen1View::Screen1View():image3FadeAnimationEndedCallback(this, &Screen1View::image3FadeAnimationEndedHandler)
{
....
}
 
void Screen1View::setupScreen()
{
        ......
	image3.setFadeAnimationEndedAction(image3FadeAnimationEndedCallback);
}
 
 
void Screen1View::image3FadeAnimationEndedHandler(const touchgfx::FadeAnimator<touchgfx::Image>& i3)
{
	image3.setVisible(false);
	application().gotoScreen2ScreenNoTransition();
 
}
 

Jan

AD�?b
Senior

Haello Jan!

Thank you. I will take a look

Andrzej