/*
 * $Id: menu_def.c 458 2019-06-17 01:16:35Z true $
 * begin 20190527 true
 *
 * main menu
 */

#include "ui/menu.h"
#include "user_config.h"


// fake menu when exiting
MenuItem code menu_none = {1,             0, 0,       0, &menu_none_disp, &menu_start};

// root menu
	// exit, snek, morble, set name, leds, options, about
MenuItem code menu_0 = {7, MENU_FLAG_SCROLL, 0,       0, &menu_0_disp, &menu_0_enter};

// name menu
	// set name, display mode, flip mode, font select, char spacing, half-width, color invert
MenuItem code menu_1 = {7, MENU_FLAG_SCROLL
				   | MENU_FLAG_SAVE_ON_EXIT, &menu_0, 1, &menu_1_disp, &menu_1_enter};

// led menu
	// led mode, favcolor hue, sat, val, altcolor hue, sat, val, speed
MenuItem code menu_2 = {8, MENU_FLAG_SCROLL
				   | MENU_FLAG_SAVE_ON_EXIT, &menu_0, 2, &menu_2_disp, &menu_2_enter};

// options menu
	// leds on/off, show cpu usage, show accel "angle",
MenuItem code menu_5 = {3, MENU_FLAG_SCROLL
				   | MENU_FLAG_SAVE_ON_EXIT, &menu_0, 5, &menu_5_disp, &menu_5_enter};

// about menu
	// credits, leds, accel, cpu usage/uptime, light/temp, font test
MenuItem code menu_6 = {6, MENU_FLAG_SCROLL, &menu_0, 6, &menu_6_disp, 0};
