예제 #1
0
파일: lcd_demo.c 프로젝트: celebro/os2010rk
int main(){

	printf("Lcd driver and lib demo\n");

	display = get_display();
	if (display == NULL) {
		printf("Failed to get display\n");
		return -1;
	}

	disable_waiting_for_enter();

	build_vars();
	intro_animation();

	char key = 0;
	int position = 0;

	while(running){
		position = menu_selection(position);
	}
	clear_screen();

	restore_terminal_settings();
	release_display(display);
}
예제 #2
0
void User_Interface::run_menu()
{
	int choice = 0;
	do
	{
		choice = menu_selection();
		handle_selection(choice);
	} while (choice != 8);
}