static void setMenuOptions()
{
	setMenuOption_P(0, PSTR("Brightness"), menu_brightness[watchConfig.brightness], setBrightness);
	setMenuOption_P(1, PSTR("Invert"), menu_invert, setInvert);
	setMenuOption_P(2, PSTR("Rotate"), menu_rotate, setRotate);
	setMenuOption_P(3, PSTR("Animations"), menu_anim[watchConfig.animations], setAnimations);
}
Exemple #2
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);
}
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);
}
Exemple #4
0
static void itemLoader(byte num)
{
	UNUSED(num);
	setMenuOption_P(0, PSTR(STR_ALARMS), menu_alarm, mAlarmsOpen);
	setMenuOption_P(1, PSTR(STR_FLASHLIGHT), menu_torch, torch_open);
#if COMPILE_STOPWATCH
	setMenuOption_P(2, PSTR(STR_STOPWATCH), menu_stopwatch, stopwatch_open);
#endif
#if COMPILE_BTRCCAR
	setMenuOption_P(2, PSTR(STR_BTRCCAR), menu_stopwatch, btrccar_open);
#endif
	//setMenuOption_P(2, PSTR(STR_TUNEMAKER), menu_tunemaker, tunemakerOpen);
	setMenuOption_P(3, PSTR(STR_GAMES), menu_games, mGamesOpen);
	//setMenuOption_P(4, PSTR(STR_CALCULATORS), menu_calc, calcOpen);
	setMenuOption_P(4, PSTR(STR_SETTINGS), menu_settings, mSettingsOpen);
	setMenuOption_P(5, PSTR(STR_DIAGNOSTICS), menu_diagnostic, mDiagOpen);

	setMenuOption_P(OPTION_COUNT, PSTR(STR_EXIT), menu_exit, menu_close);
}
Exemple #5
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);
}