Skip to content

A C++ implementation of a fixed list for a menu on a (4x20) LCD display

Notifications You must be signed in to change notification settings

ayleenw/fixed-list-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draft: Fixed List implementation in C++ for use with LCD display

This implements a menu to be shown on a LCD display (4 lines by 20 characters), connected to a microcontroller (STM32, Arduino, you name it) and controlled by a rotary encoder (alternatively it could be used with 3 buttons: up, down and select).

Assuming that the menu structure is known and fixed (no new menu entries are created during runtime), and one does not want to put the list nodes on the heap, this version does not use a classic linked list with dynamic memory allocation, but creates a fixed number of list entries and fills them with the menu entries defined in a dedicated header file.

This is using char* instead of string, because the latter is not available on STM32F0* controllers.

In this state, menu lines are printed to the console for development and debugging.

About

A C++ implementation of a fixed list for a menu on a (4x20) LCD display

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published