lcd screen code problem

Thread Starter

raw_653

Joined Feb 3, 2012
10
hi all :)

i wrote a code that is supposed to print the following on the screen
cars number=0
money=0
but when i run it i get
cars number=
money= 0

any solutions ?

the code
int i=0;
int x=0;

char itxt[16];
char xtxt[16];

void screen ()
{inttostr(x,xtxt);
inttostr(i,itxt);
Lcd_out(1,1,"cars number=");
Lcd_out_cp(itxt);
Lcd_out(2,1,"Money=");
Lcd_out_cp(xtxt);
}


thanks :)
 

spinnaker

Joined Oct 29, 2009
7,835
You are going to have to post your code for Lcdout_cp if you want someone to help. And use the code tags when posting code.

Rich (BB code):
void screen ()
{inttostr(x,xtxt);
inttostr(i,itxt);
Lcd_out(1,1,"cars number=");
Lcd_out_cp(itxt);
Lcd_out(2,1,"Money=");
Lcd_out_cp(xtxt);
}
 

Attachments

spinnaker

Joined Oct 29, 2009
7,835
I think I already mentioned it.

"You are going to have to post your code for Lcdout_cp if you want someone to help. And use the code tags when posting code."
 

spinnaker

Joined Oct 29, 2009
7,835
Did you look closely at the link to the IntToStr documentation I posted? What differences did you see?

If you did not look at it then why not? You need to put some effort into this too.
 
Top