Hello all, I have to implement a MENU screen including a few sub menu's on a 230x240 pixel LCD display. Selecting sub-menu's is done through digital inputs(buttons). I can poll these inputs or generate an interrupt to detect an active input. I can write everything on the display I want to. So I can build the individial menu screens. My problem is how do I implement a software structure to write the mainmenu and sub-menu's to the screen. Does someone have an idea or an example? Thanks, Jan
I am bussy maken software that is using a lot of switch statements as well. Does it work reliable? can't answer that, I did not write the code :). If the question is: "does the switch stement work as stated in ANSI C?" I have never seen any notion in this forum or in my work that it does not. One caveat: it does take time. I think that at one time I saw it converted to a jump table (in Keil?) and would absolutotally love to know how to make it so that happens in Keil. I can appreciate that you have to "help" the compiler by not using willy-nilly values for the cases. I have tried offset by 2 for the cases with no improvement. Erik
sorry, re above: I missed the "ARM" the above apply to the '51. Anyhow, I doubt Keil could stay in business if the switch statement did not "work reliably" Erik