Problem with using LCD_CHR in MIKROC

Status
Not open for further replies.

arash_micro

Member level 5
Joined
Jan 25, 2005
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
739
Hi
I have a prblem about using "LCD_CHR" command in MIKROC
This command ,print only CHAR vars.
For example

//********************************
unsigned char ch;
ch=65
lcd_chr(2,1,ch);
//********************************
But the LCD shows the "A" character
Is there simple way to print original var ?
If not,pleas some one explain me the "ADC_on_LCD" code from "mikroc"
 

c lcd_chr

what is this 'MICROC'?

is an c compiler? for which microcontroller?
 

inttostr mikroelectronika

You can finde it in
**broken link removed**
 

lcd_chr();

if you have print ascii code on LCD you can't do it in that way:

arash_micro said:
unsigned char ch;
ch=65
lcd_chr(2,1,ch);

first you must create string representation of ascii number, and pass that string to function lcd_out function

try this:
char buff[4];
unsigned char ch;
ch = 65;

ByteToStr(ch, buff); // fill buff with string representation of ch var
LCD_Out(2,1, buff);
 
mikroc longtostr

Thanks
but because of char,the maximum value is 255
How can i print 65783
 

lcd_chr mikroc

read microC manual, search 'Conversions Library',

conversion functions:

ByteToStr
ShortToStr
WordToStr
IntToStr
LongToStr

**broken link removed**
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…