Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FATFileSystem N5110_mod SDFileSystem USBDevice mbed
Menu system
Variables and functions used to control menus based on menu system from first-year project. More...
Namespaces | |
| namespace | drawMenu |
draws menu to LCD, and returns selected value | |
| namespace | drawVariable |
draws variable to LCD | |
Functions | |
| void | mainMenu_draw () |
| # functions | |
| void | editMenu_draw () |
| function to control edit menu navigation | |
| int | drawMenu (const char *array[]) |
| draws single level menu on screen | |
| void | drawVariable (const char *variableName, float *variable, float step_size, float max, float min, void(*function)()) |
Variables | |
| const char * | mainMenu [] |
| # Menu maps | |
| const char * | displayMenu [] |
| map for display submenu | |
| const char * | usbMenu [] |
| map for USB mode submenu | |
| const char * | outputMenu [] |
| map for output mode submenu | |
| const char * | editMenu [] |
| map for edit menu | |
Detailed Description
Variables and functions used to control menus based on menu system from first-year project.
Function Documentation
| int drawMenu | ( | const char * | array[] ) |
draws single level menu on screen
checks size of array
reset display
loops through menu entries
plots menu entries
scans input flags
clears menu indicator
increments menu position
clears menu indicator
decrements menu position
draw menu indicator
return
sleeps until output
| void drawVariable | ( | const char * | variableName, |
| float * | variable, | ||
| float | step_size, | ||
| float | max, | ||
| float | min, | ||
| void(*)() | function | ||
| ) |
| void editMenu_draw | ( | ) |
| void mainMenu_draw | ( | ) |
# functions
function to control main menu navigation
draw main menu
set tempo
draw display menu
set brightness
set PWM frequency
toggle screen inversion
inverted display
normal display
reset display
return to main menu when back button is pressed
select USB mode
reset display
Variable Documentation
| const char* displayMenu[] |
| const char* editMenu[] |
| const char* mainMenu[] |
| const char* outputMenu[] |
Generated on Tue Jul 12 2022 13:31:54 by
1.7.2