Exemplo n.º 1
0
void watchface_small(void)
{
	display_setDrawFunc(draw);
	buttons_setFunc(BTN_SELECT, NULL);
	buttons_setFunc(BTN_DOWN, NULL);
	buttons_setFunc(BTN_UP, NULL);
}
Exemplo n.º 2
0
void torch_open()
{
	menu_close();

	strobe = 0;
	display_setDrawFunc(draw);
	buttons_setFunc(BTN_SELECT,	select);
	buttons_setFunc(BTN_DOWN,	down);
	buttons_setFunc(BTN_UP,		down);
}
Exemplo n.º 3
0
void game2_start()
{
	menu_close();

	srand(millis());

	display_setDrawFunc(draw);
	buttons_setFunc(BTN_SELECT,	select);
	buttons_setFunc(BTN_DOWN,	down);
	buttons_setFunc(BTN_UP,		up);

	LOOP(CAR_COUNT, i)
	{
		cars[i].y = i * 16;
		cars[i].speed = i + 1;
		cars[i].x = FRAME_WIDTH;
	}	
Exemplo n.º 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);
}
Exemplo n.º 5
0
void mMainOpen()
{
	buttons_setFunc(BTN_DOWN,	NULL);
	buttons_setFunc(BTN_UP,		NULL);
	beginAnimation(mOpen);
}