Programs written to use Gryphon's LCD and keypad will only run if no other process is using the LCD/keypad; the LCD/keypad on Gryphon are not shared objects. During normal operations, the status monitor and menu system have control of the keypad. Programs launched from the menu system are given LCD/keypad access.
To add a compiled program (we will use the example glcddemo) to the Gryphon's main menu in the LCD menu system, you will need to do the following:
Place the compiled program (glcddemo) on the gryphon in the directory:
/gryphon/lcd/menus/main
Next, create a matching description file (glcddemo.desc) in that directory. This file should have a brief (<20 chars) description of the menu item.
Example:
File name: glcddemo.desc
File contents: LCD/Keypad Demo (please note that a space is considered a character)
Then, change the permissions on the program to mode 755. Programs may be added to submenus in the LCD system by following the submenu structure from /gryphon/cd/menus. The menus are built from these directory structures.
Please note that you may place a shell script in the menu system that will launch your program, instead of just placing the program itself.
This document was obtained from:
Dearborn Group, Inc.
(248) 488-2080
dg@dgtech.com
http://www.dgtech.com
Copyright © 2003 Dearborn Group Inc.