Problem

hello,i have a problem when i use the nokia 5110 lcd with the SimpleSDaudio library , when i use the lcd.print function more then one time or when i use it to print a long word on the screen the audio file can’t be playing ??
#include <LCD5110_Graph.h>
#include <SimpleSDAudio.h>
#include <IRremote.h>
#define power 61455
#define mute 53295
#define a 33405
#define b 37485
#define c 39525
#define d 47685
#define e 17085
#define f 21165
#define g 23205
#define h 31365
#define i 765
#define dis 4845
#define disp 6885
#define goto 15045
#define set 49215
#define up 55335
#define title 63495
#define left 16575
#define ok 22695
#define right 30855
#define arr 32895
#define down 39015
#define stop 47175
#define j 255
#define k 6375
#define l 14535
#define m 59415
#define n 20655
#define o 28815
#define p 18615
#define q 26775
#define r 36975
#define s 45135
#define t 34935
#define u 43095
#define v 4335
#define w 12495
#define x 2295
#define y 10455
LCD5110 LCD(8,7,6,4,5);
extern uint8_t SmallFont;
extern unsigned char TinyFont;
extern uint8_t arduino_logo;
extern uint8_t b_mo_logo;
extern uint8_t eyeb;
extern uint8_t eyec;
extern uint8_t eyeh;
extern uint8_t eyen;
extern uint8_t eyex;
extern uint8_t mb;
extern uint8_t mh;
extern uint8_t mo;
extern uint8_t ms;
extern uint8_t mu;
bool inMenu = false;
IRrecv ir(A3);
decode_results irc;
int tim = 100;
int xx,yy,pxx,pyy;
int tt = 10;
void setup() {
LCD.InitLCD();LCD.setFont(SmallFont);SdPlay.setSDCSPin(10);SdPlay.init(SSDA_MODE_HALFRATE | SSDA_MODE_MONO | SSDA_MODE_AUTOWORKER);
LCD.drawBitmap(0, 0, arduino_logo, 84, 48);
LCD.update();
delay(2000);
LCD.drawBitmap(0, 0, b_mo_logo, 84, 48);
LCD.update();
delay(1000);
boot();
LCD.clrScr();
LCD.update();
sayword(“G.wav”);
}
void loop() {
xx = analogRead(A1);
yy = analogRead(A0);
if (inMenu){menu();}
talk();
}
void sayword(char* talk){
SdPlay.setFile(talk);
SdPlay.play();
}
void talk(){
if(SdPlay.isPlaying()){
LCD.drawBitmap(0, 0,eyen, 84, 24);
LCD.drawBitmap(0, 25,mo, 84, 24);
LCD.update();
delay(tim);
LCD.drawBitmap(0, 25,mu, 84, 24);
LCD.update();
delay(tim);
LCD.drawBitmap(0, 25,mh, 84, 24);
LCD.update();
delay(tim);}}
void menu(){
LCD.clrScr();
LCD.setFont(TinyFont);
LCD.print("--------MENU--------",CENTER,0);
LCD.print("+B-MO Talk…",LEFT,6);
LCD.print("+Game",LEFT,12);
LCD.print("+Running MODE",LEFT,18);
if(xx<200 and pxx>0){pxx–;}
if(xx>800 and pxx<79){pxx++;}
if(yy<200 and pyy>=0){pyy–;}
if(yy>800 and pyy<42){pyy++;}
LCD.print(“x”, pxx, pyy); LCD.update();}
void boot(){
LCD.setFont(TinyFont);
LCD.print(“Boot…”,0,40);
LCD.print("%",60,40);
LCD.setFont(SmallFont);
for(int load=0;load<101;load++){LCD.printNumI(load, 64, 38);LCD.drawLine(0, 47,load*84/100 , 47);LCD.update();delay(50);if(load==99 or load == 100){delay(1000);}}}

this code is correct but the audio file G.wav don’t start paly but when i delete some of the lcd.print fonction the audio file work
please help me

LCD5110_Graph_2.zip (388 KB)

Not sure what's in the attached ZIP file, but very few, if any, people will download that file. Too risky.

Also, you should edit your post and put your code inside code tags like [code]your code here[/code]. Using Ctrl+t in the IDE to format your code properly wouldn't hurt either.

@Toujani

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Other general help and troubleshooting advice can be found here.

Bob.