void mDisplayOpen()
{
	setMenuInfo(OPTION_COUNT, PSTR("    < DISPLAY >"), MENU_TYPE_ICON, mSelect, upOption, downOption);

	setMenuOptions();
	setMenuOption_P(OPTION_EXIT, menuBack, menu_exit, back);
	
	setPrevMenuOpen(&prevMenuData, mDisplayOpen);

	beginAnimation2(NULL);
}
Example #2
0
static void mOpen()
{
	display_setDrawFunc(menu_draw);

	buttons_setFuncs(menu_up, menu_select, menu_down);

	setMenuInfo(OPTION_COUNT, MENU_TYPE_ICON, PSTR(STR_MAINMENU));
	setMenuFuncs(MENUFUNC_NEXT, mSelect, MENUFUNC_PREV, itemLoader);

	setPrevMenuOpen(&prevMenuData, mOpen);

	beginAnimation2(NULL);
}
Example #3
0
void mTimeDateOpen()
{
	// Create copy of current time & date
	memcpy(&timeDataSet, &timeData, sizeof(s_time));

	setMenuInfo(OPTION_COUNT, PSTR("  < TIME & DATE >"), MENU_TYPE_STR, mSelect, mUp, mDown);

	showDateStr();
	showTimeStr();
	setMenuOption_P(5, PSTR("Save"), NULL, saveTimeDate);
	setMenuOption_P(OPTION_EXIT, menuBack, NULL, back);

	setPrevMenuOpen(&prevMenuData, mTimeDateOpen);

	menuData.selected = 1;
	
	beginAnimation2(NULL);
}
Example #4
0
static void mOpen()
{
	display_setDrawFunc(menu_draw);

	buttons_setFunc(BTN_DOWN,	menu_down);
	buttons_setFunc(BTN_UP,		menu_up);

	setMenuInfo(OPTION_COUNT, PSTR("   < MAIN MENU >"), MENU_TYPE_ICON, mSelect, upOption, downOption);

	setMenuOption_P(0, PSTR("Alarms"), menu_alarm, mAlarmsOpen);
	setMenuOption_P(1, PSTR("Flashlight"), menu_torch, torch_open);
	setMenuOption_P(2, PSTR("Stopwatch"), menu_stopwatch, stopwatch_open);
	//setMenuOption_P(2, PSTR("Tune maker"), menu_tunemaker, tunemakerOpen);
	setMenuOption_P(3, PSTR("Games"), menu_games, mGamesOpen);
	//setMenuOption_P(4, PSTR("Calculators"), menu_calc, calcOpen);
	setMenuOption_P(4, PSTR("Settings"), menu_settings, mSettingsOpen);
	setMenuOption_P(5, PSTR("Diagnostics"), menu_diagnostic, mDiagOpen);
	setMenuOption_P(OPTION_EXIT, PSTR("Exit"), menu_exit, menu_close);

	setPrevMenuOpen(&prevMenuData, mOpen);

	beginAnimation2(NULL);
}