Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Another nice LCD menu library

Status
Not open for further replies.

picnoobie

Full Member level 1
Joined
Nov 19, 2006
Messages
97
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,288
Activity points
1,779
lcd menu library

Can't remember where I got this one, I think from avrfreaks.net, else
I'd just post the link.

I've tried it with pic, it's easy to use.
Won't works with CCS compiler tho, function pointer not supported I think.

..have fun
 

tinymenu c30

Tinymenu is very nice and works perfectly with C30.

For the CCS compiler I could only manage to write a state machine. It is big, ugly but works.

Did anyone managed to write an efficient menu system for CCS?
 

Really cool code! I have been trying to compile using HI-Tech C 9.80 on MPLAB and almost there though the following declaration will not compile (compiler wants a right parenthesis after "*entry" which of course would keep out the proper number of variables :shock::

static void menu_print_entry(menu_entry_t *entry,
int max_width,
int selected )
{
...

This ties to the TYPEDEF:

typedef struct menu_entry_s {
int flags; // see flag definitions above
void (*select)(void *arg, char *name); // routine to call when selected
char name[MENU_ENTRY_NAMELEN]; // name to display for this entry
void *value; // value to pass to select function
} menu_entry_t;

Any clues on the problem here?

Thanks,

Pete
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top