To make a menu on LCD in your application :
- declare a menu structure :
tMenu myMenu =
{
1,
"Title",
2, 0, 0, 0, 0, 0,
0,
{
{ "my function", myFunction_Ini, myFunction_Handler , 0 },
{ "Quit", fQuit, 0, 1 }
}
};
- write your init and handler functions ( myFunction_Ini and myFunction_Handler),
- in your code : call the API function "MENU_Set( &myMenu )" and then, return MENU_CHANGE to the CircleOS.
- your handler must return "MENU_CONTINUE" if it want to keep the hand, and "MENU_RESTORE_COMMAND" if you want to give back the hand to your application.
For an example, take a look to the Dictaphone project.
Yves