This project shows you how to control Nokia 5110 LCD
or SH1106 OLED
to display a menu.
- Display is connected to SSI0 on TM4C123, running at 4Mbps
- Menu is designed to add MenuItem easily
- Each MenuItem has its own property which can be one of Label, Number, Switch or your Property inherited class
- User input will send actions to MainMenu to select up/down, enter/exit menu, change value of selected item, with single click, double click, and long press
- Screen is only updated when user interacts with buttons, this keesp CPU idle when not used
- You will decide to allow a peripheral runs when CPU sleeps
Hardware
- Texas Instruments Tiva C Series TM4C123G LaunchPad
- Nokia 5110 LCD
- USB Cable, of course
Software
- Install TI's Code Composer Studio
- Install TivaWare for C Series
- Include your Tivaware folder into project, you can use the macro TI_TIVAWARE_ROOT in vars.ini
- Change the heap size as you want
- To use ROM_function() you must define part number of this kit TARGET_IS_TM4C123_RB1
- You can flash to the board via CCS or TI's LM Flash Programmer
Licensing
The MIT License applies to this software and its supporting documentation: