Jump to content

Navigating among pages


acvin

Recommended Posts

Hi all,

I am a embedded designer participating to a research challenge. In the application, we are making use of the uGFX library on a NIOS2 platform with RA8875 controller. Everything is working really nicely, including PNG decompression and touch screen.

Right now, I am generating a simple interface using uGFX Studio. I would like to use multiple pages with different containers embedded in the same application. The first would carry the splashscreen, a logo screen perhaps then the home pages. The generated code looks ok (just few minor fixes), the application boots, while it does not switch among pages. It seems that the foreground page is not released, and is still shown.

Here the code snippets of the simple application, two pages.

int main( void )
{
    printf("Start App\n");

    gfxInit();

    guiInit();
    
    guiShowPage(HOME);
    
    printf("HOME\n\r");

    gfxSleepMilliseconds(1000);

    guiShowPage(SPLASHSCREEN);

    printf("SPLASHSCREEN\n\r");

}

Other files are in the attachment.

Am I missing something in the configuration?

Thanks!

Luca

gui.c

gui.h

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...