i have error with this code ( i need to install a photo.raw from sd card to mega

plz any one cam help me

// UTouch_ButtonTest (C)2010-2012 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a quick demo of how create and use buttons.
//
// This program requires the UTFT library.
//
// It is assumed that the display module is connected to an
// appropriate shield or that you know how to change the pin
// numbers in the setup.
//

#include <tinyFAT.h>
#include <UTFT.h>
#include <UTFT_tinyFAT.h>
#include <UTouch.h>

// Declare which fonts we will be using
extern uint8_t BigFont;
extern uint8_t SmallFont;
// Uncomment the next two lines for the Arduino 2009/UNO
//UTFT myGLCD(ITDB24D,19,18,17,16); // Remember to change the model parameter to suit your display module!
//UTouch myTouch(15,10,14,9,8);

// Uncomment the next two lines for the Arduino Mega
//UTFT myGLCD(ITDB32S, 38,39,40,41); // Remember to change the model parameter to suit your display module!
UTouch myTouch(6,5,4,3,2);
UTFTtf myGLCD(ITDB32S, 38, 39, 40, 41);
char* files320={“page1.RAW”, “page2.RAW”, “page3.RAW”, “PIC304.RAW”, “PIC305.RAW”, “PIC306.RAW”, “PIC307.RAW”, “PIC308.RAW”, “PIC309.RAW”, “PIC310.RAW”};
char* files[10];
int picsize_x, picsize_y;
boolean display_rendertime=false; // Set this to true if you want the rendertime to be displayed after a picture is loaded
boolean display_filename=true; // Set this to false to disable showing of filename

word res;
long sm, em;

int x, y;
char stCurrent[20]="";
int stCurrentLen=0;
char stLast[20]="";
char x1[9] = “”;
char e1 = ‘0’;
int val1 = 0;

char x2[9] = “”;
char e2 = ‘0’;
int val2 = 0;

char x3[9] = “”;
char e3 = ‘0’;
int val3 = 0;

char x4[9] = “”;
char e4 = ‘0’;
int val4 = 0;
///////page 2

char x5[9] = “”;
char e5 = ‘0’;
//int val1 = 0;

char x6[9] = “”;
char e6 = ‘0’;
//int val2 = 0;

char x7[9] = “”;
char e7 = ‘0’;
//int val3 = 0;

char x8[9] = “”;
char e8 = ‘0’;
//int val4 = 0;

char f1[9] = “”;
char f2[9] = “”;
char f3[9] = “”;
char f4[9] = “”;
char f5[9] = “”;
char f6[9] = “”;
char f7[9] = “”;
char f8[9] = “”;

char s0 = ‘0’;
char s1 = ‘0’;

char h[9]="";
char b1=‘0’;
char b2=‘0’;
char b3=‘0’;
char b4=‘0’;
int k=0;
int ones,tens,hands,thus;

/*************************
** Custom functions **
*************************/

aaa.ino (19 KB)

anasjb:
plz any one cam help me

// UTouch_ButtonTest (C)2010-2012 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a quick demo of how create and use buttons.
//
// This program requires the UTFT library.
//
// It is assumed that the display module is connected to an
// appropriate shield or that you know how to change the pin
// numbers in the setup.
//

#include <tinyFAT.h>
#include <UTFT.h>
#include <UTFT_tinyFAT.h>
#include <UTouch.h>

// Declare which fonts we will be using
extern uint8_t BigFont;
extern uint8_t SmallFont;
// Uncomment the next two lines for the Arduino 2009/UNO
//UTFT myGLCD(ITDB24D,19,18,17,16); // Remember to change the model parameter to suit your display module!
//UTouch myTouch(15,10,14,9,8);

// Uncomment the next two lines for the Arduino Mega
//UTFT myGLCD(ITDB32S, 38,39,40,41); // Remember to change the model parameter to suit your display module!
UTouch myTouch(6,5,4,3,2);
UTFTtf myGLCD(ITDB32S, 38, 39, 40, 41);
char* files320={“page1.RAW”, “page2.RAW”, “page3.RAW”, “PIC304.RAW”, “PIC305.RAW”, “PIC306.RAW”, “PIC307.RAW”, “PIC308.RAW”, “PIC309.RAW”, “PIC310.RAW”};
char* files[10];
int picsize_x, picsize_y;
boolean display_rendertime=false; // Set this to true if you want the rendertime to be displayed after a picture is loaded
boolean display_filename=true; // Set this to false to disable showing of filename

word res;
long sm, em;

int x, y;
char stCurrent[20]="";
int stCurrentLen=0;
char stLast[20]="";
char x1[9] = “”;
char e1 = ‘0’;
int val1 = 0;

char x2[9] = “”;
char e2 = ‘0’;
int val2 = 0;

char x3[9] = “”;
char e3 = ‘0’;
int val3 = 0;

char x4[9] = “”;
char e4 = ‘0’;
int val4 = 0;
///////page 2

char x5[9] = “”;
char e5 = ‘0’;
//int val1 = 0;

char x6[9] = “”;
char e6 = ‘0’;
//int val2 = 0;

char x7[9] = “”;
char e7 = ‘0’;
//int val3 = 0;

char x8[9] = “”;
char e8 = ‘0’;
//int val4 = 0;

char f1[9] = “”;
char f2[9] = “”;
char f3[9] = “”;
char f4[9] = “”;
char f5[9] = “”;
char f6[9] = “”;
char f7[9] = “”;
char f8[9] = “”;

char s0 = ‘0’;
char s1 = ‘0’;

char h[9]="";
char b1=‘0’;
char b2=‘0’;
char b3=‘0’;
char b4=‘0’;
int k=0;
int ones,tens,hands,thus;

/*************************
** Custom functions **
*************************/

Really hard to help you with an error when you don’t bother to tell us what that error is!

Paul

I think you should ask here first : The guy that wrote it.

-jim lee