I cleaned up the code that we used last year in EasyC and set it to the 4 screens you asked for. I am 95% sure that this will work, but I don’t have a Cortex/LCD Screen to actually test on. The left and right buttons will scroll through the menu screens, and the center buttons selects the program displayed at the time. The comments should make it easy enough to understand why everything works, and allow you to change it if you wanted to add more programs.
EDIT: I have to make a small note here. There’s a .c file that’s included in there called “youshallnotpass.c” or something like that. It does nothing with the program, and is just something I forgot to delete when I reformatted our competition code from last year. Sorry.
I did the same menu system in PROS, too, if anyone was interested in that. They’re basically the same code, just formatted slightly differently. Again, that has the four screens you wanted and the same selection interface.
I can’t do one in RobotC right now; the guy on our team with the license is busy and can’t send it to me. Sorry if that was the language you were actually after. I’d recommend you take a look at PROS, if that was the case. We actually like it better, and at the very least you could easily figure out how to write the menu in RobotC from what I’ve got here.
If anyone sees/catches any critical errors, sorry. Go ahead and call me out on them and correct them, or I can when I get the chance.
EDIT 2: Don’t use these; see my post below. I can’t figure out how to delete the files, so just don’t download them and scroll a bit more.
LCD Menu PROS.zip (1.05 MB)
LCD Menu EasyC.zip (4.07 KB)