Altera DE2-115 Uživatelská příručka Strana 105

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 107
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 104
SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab
104
touch = 1;
x=0;
y=0;
result = write_buffer(display_global,name_list[pic_index],frame_write_index);
sprintf(text_calc,"10 + 5 = 15");
vid_print_string_alpha(350, 410, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, text_calc);
sprintf(text_disp,"ADDITION");
vid_print_string_alpha(50, 200, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, text_disp);
sprintf(text_disp,"SUBTRACTION");
vid_print_string_alpha(200, 200, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, text_disp);
sprintf(text_disp,"LOGICAL AND");
vid_print_string_alpha(400, 200, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, text_disp);
sprintf(text_disp,"LOGICAL OR");
vid_print_string_alpha(600, 200, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, text_disp);
usleep(100000);
Touch_EmptyFifo(hTouch);
goto here; // label to take it back to the main loop
6) The screen performs respective functions according to which trigger area is touched.
Alternatively you can obtain the software code by opening the main.c file which is attached with this
tutorial.
Downloading the design to the Board
a) For Hardware, compile the .sof file on the board as shown below:
Zobrazit stránku 104
1 2 ... 100 101 102 103 104 105 106 107

Komentáře k této Příručce

Žádné komentáře