xevi/NuEVI
Mikael Degerfält 699546df8c Handle sub menus in a generic way and moved adjust menu logic to separate file
This is a big one where I can finally reap what I sown. Sub menu entries now provide two functions, one to get the text for the current value and one to apply changes aka save to EEPROM. With this I can replace so much code in the menu() function that handles input, but was _almost_ identical. The process of converting the old menus are not completed, and I can probably remove about 200 lines more code.

The question is still what to do with less general menus like the rotator and fast patch menu.

One problem with the current implementation is that it is RAM heavy. It seems the const MenuEntry structs are placed in ram, because there is a pointer to RAM that I assume is allocated during execution and therefore the address cannot be stored in ROM.

My plan has been to put all the configuration fields (that are stored in EEPROM) into a struct or an array. When that is implemented, I can instead store the offset into the array in the const struct, which should be available at compile time and therefore can reside completely in ROM.
2019-06-23 17:14:17 +02:00
..
adjustmenu.cpp Handle sub menus in a generic way and moved adjust menu logic to separate file 2019-06-23 17:14:17 +02:00
config.h Made the sensor adjust menu driven by data 2019-06-23 17:14:17 +02:00
globals.h Made the sensor adjust menu driven by data 2019-06-23 17:14:17 +02:00
hardware.h Added way to enter regular menu instead of rotator menu (touch special key) if touch sensing is set too high. Added support for pneumatic bite sensing (add-on board). Experimental pitch CV out for built-in add-on CV scaler board (#define CVSCALEBOARD). LED brightness fix. 2019-03-21 09:15:28 +01:00
menu.cpp Handle sub menus in a generic way and moved adjust menu logic to separate file 2019-06-23 17:14:17 +02:00
menu.h Handle sub menus in a generic way and moved adjust menu logic to separate file 2019-06-23 17:14:17 +02:00
midi.cpp C++ify midi.ino, change to appropriate datatypes 2019-06-23 09:55:51 +02:00
midi.h C++ify midi.ino, change to appropriate datatypes 2019-06-23 09:55:51 +02:00
name.c Move all source files to subdirectory to be less confusing for Arduino IDE 2019-03-04 10:16:58 +01:00
NuEVI.ino Unified main and patch menu input handling 2019-06-23 17:14:17 +02:00
numenu.cpp Menu selection is now data driven 2019-06-23 17:14:17 +02:00
numenu.h Handle sub menus in a generic way and moved adjust menu logic to separate file 2019-06-23 17:14:17 +02:00
settings.h Moved settings #defines to settings.h 2019-06-04 23:34:26 +02:00