neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
933 stars 189 forks source link

define two whole different menus at the same project #329

Closed HamidSaffari closed 3 years ago

HamidSaffari commented 3 years ago

Hi and best regard. How we can define two complete menus and with different navigation and activate each one by two different keys for example?

olikraus commented 3 years ago

By writing software or by using a full featured menu system.

neu-rah commented 3 years ago

here an example of concurrent menus, https://github.com/neu-rah/ArduinoMenu/blob/master/examples/concurrent/concurrent/concurrent.ino

you can have multiple independent menus and switch between them or have them running at same time provided that they have independent IO, as @olikraus pointed, it won't be automatic, you must either switch focus between them (calling poll) or do the proper setup for independent IO

HamidSaffari commented 3 years ago

Thanks @neu-rah, your example (concurrent.ino) was completely helpful.