ArduinoMenu icon indicating copy to clipboard operation
ArduinoMenu copied to clipboard

Number of menu items.

Open Astar75256 opened this issue 5 years ago • 2 comments

Hello... Please tell me how you can increase the number of menu items for a macro. Maximum managed to make only 15 elements.

MENU(funcColorMenu1, "Functions 2", doNothing, noEvent, wrapStyle,
	OP(RANDOM_COLOR_EFF, action2, anyEvent),
	OP(SMOOTH_RANDOM_EFF, action2, anyEvent),
	OP(PRIDE_EFF, action2, anyEvent),
	OP(RED_STROBE_EFF, action2, anyEvent),
	OP(PUPRLE_STROBE_EFF, action2, anyEvent),
	OP(YELLOW_STROBE_EFF, action2, anyEvent),
	OP(GREEN_STROBE_EFF, action2, anyEvent),
	OP(CYAN_STROBE_EFF, action2, anyEvent),
	OP(BLUE_STROBE_EFF, action2, anyEvent),
	OP(ALL_COLORS_STROBE_EFF, action2, anyEvent),
	OP(MULTICOLORS_STROBE_EFF, action2, anyEvent),
	OP(RED_FADE_EFF, action2, anyEvent),
	OP(YELLOW_FADE_EFF, action2, anyEvent),
	OP(GREEN_FADE_EFF, action2, anyEvent),
	// OP(CYAN_FADE_EFF, action2, anyEvent),
	// OP(BLUE_FADE_EFF, action2, anyEvent),
	OP(PURPLE_FADE_EFF, action2, anyEvent),
	EXIT("<Back")
);

Only two elements were missing, so I commented them out)

Astar75256 avatar Jun 05 '20 11:06 Astar75256

hi! yes, macro has that limitation... and only editing the horrible macro to overcome the limit. But constructing without macro is an optio, what mcu are you using?

neu-rah avatar Jun 05 '20 13:06 neu-rah

You can also split into several sub menu Random -> COLOR or smooth Strobe -> RED, PURPLE, etc. Fade -> Yellow, etc.

For a user, a well structured menu is more efficient than a large flat menu.

fmatray avatar Jun 05 '20 13:06 fmatray