/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Keyboard On LCD Screen Primer2

Username:     
Password:     
             

Forum

# 1   2010-08-01 00:57:27 Keyboard On LCD Screen Primer2

Janc_24
New member
Registered: 2010-05-27
Posts: 2

Keyboard On LCD Screen Primer2

Hello,

I'm have just buy a STM32 primer 2 and I would like to Know if somebody has made a keboard on LCD screen of the Primer2? And how to make a menu on LCD too.

Thanks.

Offline

 

# 2   2010-08-11 14:29:43 Keyboard On LCD Screen Primer2

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Keyboard On LCD Screen Primer2

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

Offline

 

# 3   2010-08-19 20:12:54 Keyboard On LCD Screen Primer2

Janc_24
New member
Registered: 2010-05-27
Posts: 2

Re: Keyboard On LCD Screen Primer2

Hello, Thanks for answer the question, I'm going to see the Dictaphone Project...

Alejandro.

Offline

 

Board footer