User guide
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: