/* * TOUCH_EVENT.c * * Created on: 1/04/2014 * Author: Holguer A. Becerra * Adrizcorp@gmail.com */ // INCLUDES TOUCH #include #include // usleep (unix standard?) #include "io.h" // I/O access #include "system.h" // HAL system #include "./touch_driver/TOUCH_EVENT.h" // INCLUDES VIDEO #include "terasic_includes.h" #include "vip_fr.h" #include "./graphic_lib/simple_graphics.h" #include "./graphic_lib/gimp_bmp.h" #include "./graphic_lib/draw_gimps.h" #define FRAME_WIDTH 480 #define FRAME_HEIGHT 272 #define FR_FRAME_0 (SDRAM_BASE) // vector de colores unsigned int colors[10]={GREEN_24,AQUAMARINE_24,BROWN_24,BLUEVIOLET_24,INDIGO_24, LEMONCHIFFON_24,OLIVE_24,SILVER_24, DIMGRAY_24,GOLD_24}; // subfuncion calcular fractal int calc_frac_point(float cx, float cy, float max_itr){ float xx; float x; float y; float yy; float xy; float x2; float y2; float itr; x = cx; y = cy; itr=0; do { xx = x * x; yy = y * y; xy = x * y; x = xx - yy + cx; y = xy*2.0 + cy; itr ++ ; } while (xx+yy<4.0 && (itr