#define MOVELIST 2 // constants for indicating whether cursor should be redrawnÄ«yte totalCols = 20 // total columns of LCD #define MOVECURSOR 1 // constants for indicating whether cursor should be redrawn (see post a few down for a suggested implementation using buttons). This was set up to use a rotary encoder, but the code should be commented enough so you can figure out what code should go where using buttons. If you donât want menu to timeout, just comment out the âif (timeoutTimeanyone has any tips or tweaks, I would like to hear it. There is a comment near the top that indicates where you can put code that will be called in the background while looping. This function creates a âDoâ loop and keeps looping while waiting for user input. This should work with 1x16, 2x16, 4x20 or any other dimension LCD. I am brand new to the arduino, and so I didnât really understand how to use the class-based menuBackend that has been floating around here. I was struggling to find an easy to implement menu system that works on a variety of LCDs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |